Closed Bug 1380742 Opened 7 years ago Closed 7 years ago

Serve /contribute.json properly

Categories

(Socorro :: Symbols, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

Details

Using static.serve [0] is annoying because the content-type becomes "application/octet-stream" and we don't get automatic indentation which is nice when using curl to view it in plain text. Also, if done properly with json.loads() and http.JsonResponse we can have tests that assure that the JSON is valid. [0] https://github.com/mozilla-services/tecken/blob/022ede62db680a017c70f18a7def8b77c113b996/tecken/urls.py#L33-L37
Commit pushed to master at https://github.com/mozilla-services/tecken https://github.com/mozilla-services/tecken/commit/e5374df5a3938e9d2e0c2a502cb0b903b5d217b3 fixes bug 1380742 - Serve /contribute.json properly (#220) * fixes bug 1380742 - Serve /contribute.json properly * only allow GET and HEAD
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.