diff options
| author | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-07-08 14:14:50 -0400 |
|---|---|---|
| committer | Kevin J Hoerr <kjhoerr@protonmail.com> | 2017-07-08 14:14:50 -0400 |
| commit | 4b0a7c07e3de186d93b2a48b50eee2f9ddcec142 (patch) | |
| tree | 7fc90640eb57b085b7a581d0184e759249e8db88 /private | |
| parent | 692a4a48d5f8f74a06d0b5890e31887a76a903f3 (diff) | |
| download | august-offensive-4b0a7c07e3de186d93b2a48b50eee2f9ddcec142.tar.gz august-offensive-4b0a7c07e3de186d93b2a48b50eee2f9ddcec142.tar.bz2 august-offensive-4b0a7c07e3de186d93b2a48b50eee2f9ddcec142.zip | |
Declare content-type early
Diffstat (limited to 'private')
| -rw-r--r-- | private/View/Output.php | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/private/View/Output.php b/private/View/Output.php index fe42c15..8773e42 100644 --- a/private/View/Output.php +++ b/private/View/Output.php @@ -21,11 +21,6 @@ class Output */ public static function json (Model\Result $result, bool $prepare = true): string { - // breaks side effect rule? - if ($prepare) { - header("Content-Type: application/json"); - } - return json_encode(array( "Result-Type" => $result->getResultType(), "Content" => $result->getResult() |
