# HG changeset patch # User Mads Kiilerich # Date 1470313416 -7200 # Node ID 71ddb9aafafade2160590e5d869d90463b9b6ce2 # Parent e423ed0800578e9b517c863a17c6ab5eec72b136 routing: use POST to 'update_repo_caches' instead of PUT diff -r e423ed080057 -r 71ddb9aafafa 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 @@ -579,9 +579,9 @@ rmap.connect("edit_repo_caches", "/{repo_name:.*?}/settings/caches", controller='admin/repos', action="edit_caches", conditions=dict(method=["GET"], function=check_repo)) - rmap.connect("edit_repo_caches", "/{repo_name:.*?}/settings/caches", + rmap.connect("update_repo_caches", "/{repo_name:.*?}/settings/caches", controller='admin/repos', action="edit_caches", - conditions=dict(method=["PUT"], function=check_repo)) + conditions=dict(method=["POST"], function=check_repo)) rmap.connect("edit_repo_remote", "/{repo_name:.*?}/settings/remote", diff -r e423ed080057 -r 71ddb9aafafa kallithea/templates/admin/repos/repo_edit_caches.html --- a/kallithea/templates/admin/repos/repo_edit_caches.html Thu Aug 04 14:23:36 2016 +0200 +++ b/kallithea/templates/admin/repos/repo_edit_caches.html Thu Aug 04 14:23:36 2016 +0200 @@ -1,4 +1,4 @@ -${h.form(url('edit_repo_caches', repo_name=c.repo_name), method='put')} +${h.form(url('update_repo_caches', repo_name=c.repo_name))}
${h.submit('reset_cache_%s' % c.repo_info.repo_name,_('Invalidate Repository Cache'),class_="btn btn-small")}