Skip to content

Commit

Permalink
fix(api texts): status code 405.
Browse files Browse the repository at this point in the history
  • Loading branch information
YishaiGlasner committed Jun 21, 2023
1 parent a40741f commit f3f2b52
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ def get_texts(request, tref):
handler = APITextsHandler(oref, versions_params)
data = handler.get_versions_for_query()
return jsonResponse(data, cb)
return jsonResponse({"error": "Unsupported HTTP method."}, cbdocs)
return jsonResponse({"error": "Unsupported HTTP method."}, cb, 405)

0 comments on commit f3f2b52

Please sign in to comment.