Sfoglia il codice sorgente

fixed content type header

develop
Robin Thoni 8 anni fa
parent
commit
7842fbfe6f
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1
    1
      src/Utils/Controller/LuticateApplication.php

+ 1
- 1
src/Utils/Controller/LuticateApplication.php Vedi File

@@ -115,8 +115,8 @@ class LuticateApplication implements MessageComponentInterface
115 115
         $parameters = array_merge($_GET, $_POST);
116 116
         
117 117
         $r = $this->dispatch($httpMethod, $url, $parameters);
118
-        header("content-type", "application/json");
119 118
         http_response_code($r->getStatusCode());
119
+        header("content-type", "application/json");
120 120
         echo $r->__toString();
121 121
     }
122 122
     

Loading…
Annulla
Salva