This repository was archived by the owner on Feb 26, 2024. It is now read-only.
This repository was archived by the owner on Feb 26, 2024. It is now read-only.
_http_outgoing.js:351 throw new TypeError('The header content contains invalid characters'); ^ #303
Closed
Description
Environment :
Windows 10 64bit, nodejs 4.3.x and nodejs 5.6.x
Issue :
Trying to connect after starting with "npm start", http-server die with follwing error.
_http_outgoing.js:351
throw new TypeError('The header content contains invalid characters');
^
TypeError: The header content contains invalid characters
at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:351:13)
at ResponseStream.(anonymous function) [as setHeader] (C:\SourceIgloo\0.Studying\AngularJS\angular-phonecat\node_modules\http-server\node_modules\union\lib\response-stream.js:86:34)
at serve (C:\SourceIgloo\0.Studying\AngularJS\angular-phonecat\node_modules\http-server\node_modules\ecstatic\lib\ecstatic.js:146:11)
at C:\SourceIgloo\0.Studying\AngularJS\angular-phonecat\node_modules\http-server\node_modules\ecstatic\lib\ecstatic.js:139:9
at FSReqWrap.oncomplete (fs.js:82:15)
Solution :
need to upgrade http-server to 0.8.5
In package.json
"http-server": "^0.8.5"
Metadata
Metadata
Assignees
Labels
No labels