cloudcms-server 3.2.320 → 3.2.321
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
package/server/index.js
CHANGED
|
@@ -1004,16 +1004,17 @@ var startServer = function(config, startServerFinishedFn)
|
|
|
1004
1004
|
|
|
1005
1005
|
if (kill)
|
|
1006
1006
|
{
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1007
|
+
var text = "KILL, method: " + req.method + ", url: " + req.url;
|
|
1008
|
+
if (req.headers)
|
|
1009
|
+
{
|
|
1010
|
+
text += ", headers: " + JSON.stringify(req.headers);
|
|
1011
|
+
}
|
|
1012
|
+
if (req.query)
|
|
1013
|
+
{
|
|
1014
|
+
text += ", query: " + JSON.stringify(req.query);
|
|
1015
|
+
}
|
|
1016
|
+
console.log(text);
|
|
1017
|
+
|
|
1017
1018
|
// are we being spoofed? kill the connection
|
|
1018
1019
|
res.blocked = true;
|
|
1019
1020
|
res.writeHead(503, { 'Content-Type': 'application/json' });
|