diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 21:46:24 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 22:03:23 +0200 |
| commit | f6579d0716fc05901d95d4247e0f5c0364ab3d38 (patch) | |
| tree | 640a08b67eb0c6b091f69c1e912d88adccbc2d22 /img/donate.png | |
| parent | 760b1dda71e706a9014b85d34025874e9ef7bbeb (diff) | |
JSON-ify the default invalid response type error
Code re-use is good. The previous implementation doesn't reuse existing
text_error() functions and also forgoes using text/plain header with the
text implementation.
This fixes consistency where JSON is assumed to be the default output.
It is a common practice among APIs to default all errors to JSON, such
as the Stripe and Tumblr APIs.
Diffstat (limited to 'img/donate.png')
0 files changed, 0 insertions, 0 deletions
