Skip to content

Commit

Permalink
global: URL key as path
Browse files Browse the repository at this point in the history
* Changes the 'key' argument type in URL pattern to path.

Signed-off-by: Krzysztof Nowak <k.nowak@cern.ch>
  • Loading branch information
Krzysztof Nowak committed Apr 1, 2016
1 parent 286cda7 commit 4bd76d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion invenio_files_rest/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -717,7 +717,7 @@ def head(self, bucket_id, filename, **kwargs):
methods=['GET', 'PUT', 'DELETE', 'HEAD']
)
blueprint.add_url_rule(
'/<string:bucket_id>/<string:key>',
'/<string:bucket_id>/<path:key>',
view_func=object_view,
methods=['GET', 'PUT', 'DELETE', 'HEAD']
)

0 comments on commit 4bd76d5

Please sign in to comment.