From daac77a1962d8f256b3e7c5a0b46c10c833f688a Mon Sep 17 00:00:00 2001 From: Juuso Lapinlampi Date: Sun, 4 Oct 2015 12:36:39 +0000 Subject: 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. --- static/classes/Response.class.php | 6 +++--- 1 file 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; -- cgit v1.2.3