Browse Source

fixed content type header

develop
Robin Thoni 8 years ago
parent
commit
7842fbfe6f
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/Utils/Controller/LuticateApplication.php

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

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

Loading…
Cancel
Save