Skip to content

Commit

Permalink
Allow slashes in query string (fixes #2)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidMStraub committed Jun 1, 2020
1 parent 51c32e9 commit 77dd847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netviel/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def get(self, thread_id):
messages = thread.get_messages()
return messages_to_json(messages)

api.add_resource(Query, "/api/query/<string:query_string>")
api.add_resource(Query, "/api/query/<path:query_string>")
api.add_resource(Thread, "/api/thread/<string:thread_id>")

@app.route("/api/attachment/<string:message_id>/<int:num>")
Expand Down

0 comments on commit 77dd847

Please sign in to comment.