Skip to content

Commit

Permalink
Make /deps.json/<revspec> route accept slashes
Browse files Browse the repository at this point in the history
As noted on aspiers#75, currently, the server doesn't recognize requests for /deps.json/ route for branch names with slashes (i.e. `feat/` and `fix/`). The fix is done by adding a `path:` converter to the route, as explained in http://flask.pocoo.org/docs/1.0/quickstart/#variable-rules.

Closes aspiers#75
  • Loading branch information
vhfmag authored Jun 17, 2018
1 parent a79c270 commit c1b7c69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git_deps/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def send_options():
client_options['repo_path'] = os.getcwd()
return jsonify(client_options)

@webserver.route('/deps.json/<revspec>')
@webserver.route('/deps.json/<path:revspec>')
def deps(revspec):
detector = DependencyDetector(options)
listener = JSONDependencyListener(options)
Expand Down

0 comments on commit c1b7c69

Please sign in to comment.