diff options
| -rw-r--r-- | README.md | 2 | ||||
| -rwxr-xr-x | static/classes/Response.class.php | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -65,4 +65,4 @@ license. See LICENSE. ## Contact -The maintainer can be contacted via hostmaster@pantsu.cat. +The maintainer can be contacted via <hostmaster@pantsu.cat>. diff --git a/static/classes/Response.class.php b/static/classes/Response.class.php index b7e4c5d..037d94f 100755 --- a/static/classes/Response.class.php +++ b/static/classes/Response.class.php @@ -16,10 +16,9 @@ class Response header('Content-Type: text/plain; charset=UTF-8'); $this->type = $response_type; break; - case 'html': - header('Content-Type: text/html;charset=utf-8'); - $this->type = 'html'; + header('Content-Type: text/html; charset=UTF-8'); + $this->type = $response_type; break; default: header('Content-Type: application/json; charset=UTF-8'); @@ -107,6 +106,7 @@ class Response { return POMF_URL.$files[0]['url']; } + private static function txt_error($code, $description) { return 'ERROR: ('.$code.') '.$description; |
