# HG changeset patch # User Mads Kiilerich # Date 1470313416 -7200 # Node ID abd734dc37046885f1376e9b58561f9009e320b8 # Parent 1522c37cbc62d7c09198a247525eb7477754807b routing: use POST to 'create_repo_fields' instead of PUT diff -r 1522c37cbc62 -r abd734dc3704 kallithea/config/routing.py --- a/kallithea/config/routing.py Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/config/routing.py Thu Aug 04 14:23:36 2016 +0200 @@ -550,7 +550,7 @@ conditions=dict(method=["GET"], function=check_repo)) rmap.connect('create_repo_fields', "/{repo_name:.*?}/settings/fields/new", controller='admin/repos', action="create_repo_field", - conditions=dict(method=["PUT"], function=check_repo)) + conditions=dict(method=["POST"], function=check_repo)) rmap.connect('delete_repo_fields', "/{repo_name:.*?}/settings/fields/{field_id}/delete", controller='admin/repos', action="delete_repo_field", conditions=dict(method=["POST"], function=check_repo)) diff -r 1522c37cbc62 -r abd734dc3704 kallithea/templates/admin/repos/repo_edit_fields.html --- a/kallithea/templates/admin/repos/repo_edit_fields.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_fields.html Thu Aug 04 14:23:36 2016 +0200 @@ -24,7 +24,7 @@ %endif - ${h.form(url('create_repo_fields', repo_name=c.repo_name),method='put')} + ${h.form(url('create_repo_fields', repo_name=c.repo_name))}