瀏覽代碼

fixed content type header

develop
Robin Thoni 8 年之前
父節點
當前提交
7842fbfe6f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1
    1
      src/Utils/Controller/LuticateApplication.php

+ 1
- 1
src/Utils/Controller/LuticateApplication.php 查看文件

@@ -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…
取消
儲存