flex-combo
Advanced tools
Comparing version 0.4.0 to 0.4.1
@@ -308,3 +308,8 @@ var http = require('http') | ||
if(resp.statusCode !== 200){ | ||
cosoleResp('Not found', requestOption.host + requestOption.path + ' (host:'+ reset + yellow + requestOption.headers.host + reset + ')'); | ||
var headerHost = ''; | ||
if(requestOption.headers && requestOption.headers.host) | ||
{ | ||
headerHost = requestOption.headers.host; | ||
} | ||
cosoleResp('Not found', requestOption.host + requestOption.path + ' (host:'+ reset + yellow + headerHost + reset + ')'); | ||
res.end('File ' + requestOption.host + requestOption.path + ' not found.'); | ||
@@ -413,3 +418,8 @@ return; | ||
if(resp.statusCode !== 200){ | ||
cosoleResp('Not found', requestOption.host + reqPath + reqArray[id].file + '('+ yellow +'host:'+requestOption.headers.host+ reset +')'); | ||
var headerHost = ''; | ||
if(requestOption.headers && requestOption.headers.host) | ||
{ | ||
headerHost = requestOption.headers.host; | ||
} | ||
cosoleResp('Not found', requestOption.host + reqPath + reqArray[id].file + '('+ yellow +'host:'+ headerHost + reset +')'); | ||
reqArray[id].ready = true; | ||
@@ -416,0 +426,0 @@ reqArray[id].content = 'File '+ reqArray[id].file +' not found.'; |
{ | ||
"name": "flex-combo", | ||
"version": "0.4.0", | ||
"version": "0.4.1", | ||
"description": "The Flex-combo is combo tool designed for web front-end developer. It support various kinds of combo format by modify configuration(eg. yahoo combo).", | ||
@@ -5,0 +5,0 @@ "main": "flex-combo.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
80755
1560