summaryrefslogtreecommitdiff
path: root/static/classes
diff options
context:
space:
mode:
authorJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 14:36:39 +0200
committerJuuso Lapinlampi <wub@partyvan.eu>2015-10-04 14:36:39 +0200
commitdaac77a1962d8f256b3e7c5a0b46c10c833f688a (patch)
treeaeb8acb7077e399c73530cd2698e70343a8319ae /static/classes
parent7596cf0620ebe8f84360ed30ec0376763e92a612 (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-xstatic/classes/Response.class.php6
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;