diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-29 23:53:01 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-09-29 23:53:01 +0200 |
| commit | fb23dde10af35eea3b0f0b14459630305618ac3a (patch) | |
| tree | 3eb46e96cabcc93ee6823b093096194a7ad20bcc /img/donate.png | |
| parent | 2ca5b6b743487477fdaf045a7d4abb605780a300 (diff) | |
Remove default undefined behavior from Response class
Let's say some user decides to use output "xml". Unexpectedly, the user
would instead receive JSON output. This is undefined behavior in its own
way and violates the principle of least surprise.
Problems could arise if we added "xml" later with actual application/xml
or text/xml content.
Right now upload.php overrides an empty output argument to json instead,
so this seems safe to do. Any non-existent output will now return a 400
Bad Request error.
Diffstat (limited to 'img/donate.png')
0 files changed, 0 insertions, 0 deletions
