diff options
| author | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 14:36:39 +0200 |
|---|---|---|
| committer | Juuso Lapinlampi <wub@partyvan.eu> | 2015-10-04 14:36:39 +0200 |
| commit | daac77a1962d8f256b3e7c5a0b46c10c833f688a (patch) | |
| tree | aeb8acb7077e399c73530cd2698e70343a8319ae /static/classes | |
| parent | 7596cf0620ebe8f84360ed30ec0376763e92a612 (diff) | |
Fix Gyazo response falling through back to text again
This fixes a silly mistake where Gyazo would accidentally use the HTML
response instead of text as intended.
This bug was introduced in commit 2ca5b6b.
Diffstat (limited to 'static/classes')
| -rwxr-xr-x | static/classes/Response.class.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index fe25664..02b92db 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -34,9 +34,6 @@ class Response header('Content-Type: text/csv; charset=UTF-8'); $this->type = $response_type; break; - case 'gyazo': - // Deprecated API since version 2.0.0 - // fallthrough case 'html': header('Content-Type: text/html; charset=UTF-8'); $this->type = $response_type; @@ -45,6 +42,9 @@ class Response header('Content-Type: application/json; charset=UTF-8'); $this->type = $response_type; break; + case 'gyazo': + // Deprecated API since version 2.0.0 + // fallthrough case 'text': header('Content-Type: text/plain; charset=UTF-8'); $this->type = $response_type; |
