You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: main.js
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -33,7 +33,7 @@ function runPHP(req, response, next, phpdir){
33
33
REQUEST_URI: req.url,//The original request URI sent by the client.
34
34
REQUEST_METHOD: req.method,//The method used by the current request; usually set to GET or POST.
35
35
QUERY_STRING: parts.query||"",//The information which follows the ? character in the requested URL.
36
-
CONTENT_TYPE: req.get("Content-type"),//"multipart/form-data", //"application/x-www-form-urlencoded", //The MIME type of the request body; set only for POST or PUT requests.
36
+
CONTENT_TYPE: req.get("Content-type")||"",//"multipart/form-data", //"application/x-www-form-urlencoded", //The MIME type of the request body; set only for POST or PUT requests.
37
37
CONTENT_LENGTH: req.rawBody.length||0,//The length in bytes of the request body; set only for POST or PUT requests.
38
38
AUTH_TYPE: "",//The authentication type if the client has authenticated itself to access the script.
39
39
AUTH_USER: "",
@@ -58,11 +58,6 @@ function runPHP(req, response, next, phpdir){
0 commit comments