{"action":"created","issue":{"url":"https://api.github.com/repos/indexzero/http-server/issues/244","repository_url":"https://api.github.com/repos/indexzero/http-server","labels_url":"https://api.github.com/repos/indexzero/http-server/issues/244/labels{/name}","comments_url":"https://api.github.com/repos/indexzero/http-server/issues/244/comments","events_url":"https://api.github.com/repos/indexzero/http-server/issues/244/events","html_url":"https://github.com/indexzero/http-server/issues/244","id":132902613,"number":244,"title":"The header content contains invalid characters？","user":{"login":"iPyCode","id":9066414,"avatar_url":"https://avatars.githubusercontent.com/u/9066414?v=3","gravatar_id":"","url":"https://api.github.com/users/iPyCode","html_url":"https://github.com/iPyCode","followers_url":"https://api.github.com/users/iPyCode/followers","following_url":"https://api.github.com/users/iPyCode/following{/other_user}","gists_url":"https://api.github.com/users/iPyCode/gists{/gist_id}","starred_url":"https://api.github.com/users/iPyCode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iPyCode/subscriptions","organizations_url":"https://api.github.com/users/iPyCode/orgs","repos_url":"https://api.github.com/users/iPyCode/repos","events_url":"https://api.github.com/users/iPyCode/events{/privacy}","received_events_url":"https://api.github.com/users/iPyCode/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2016-02-11T06:51:55Z","updated_at":"2016-03-18T01:27:20Z","closed_at":"2016-02-19T06:52:04Z","body":"I install the package and write a simple html page to try it.\r\nThen I typed \"http-server\", the server was on. \r\nBut when I tried to visit the url, I got this error:\r\n<blockquote>\r\n[Thu, 11 Feb 2016 06:18:12 GMT] \"GET /\" \"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36\"\r\n_http_outgoing.js:348\r\n    throw new TypeError('The header content contains invalid characters');\r\n    ^\r\n\r\nTypeError: The header content contains invalid characters\r\n    at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:348:11)\r\n    at ResponseStream.(anonymous function) [as setHeader] (D:\\Programme\\nodejs\\node_global\\node_modules\\http-server\\node_modules\\union\\lib\\response-stream.js:88:34)\r\n    at serve (D:\\Programme\\nodejs\\node_global\\node_modules\\http-server\\node_modules\\ecstatic\\lib\\ecstatic.js:204:11)\r\n    at D:\\Programme\\nodejs\\node_global\\node_modules\\http-server\\node_modules\\ecstatic\\lib\\ecstatic.js:134:11\r\n    at FSReqWrap.oncomplete (fs.js:82:15)\r\n</blockquote>\r\nI don't know why?"},"comment":{"url":"https://api.github.com/repos/indexzero/http-server/issues/comments/198153026","html_url":"https://github.com/indexzero/http-server/issues/244#issuecomment-198153026","issue_url":"https://api.github.com/repos/indexzero/http-server/issues/244","id":198153026,"user":{"login":"gggin","id":3293064,"avatar_url":"https://avatars.githubusercontent.com/u/3293064?v=3","gravatar_id":"","url":"https://api.github.com/users/gggin","html_url":"https://github.com/gggin","followers_url":"https://api.github.com/users/gggin/followers","following_url":"https://api.github.com/users/gggin/following{/other_user}","gists_url":"https://api.github.com/users/gggin/gists{/gist_id}","starred_url":"https://api.github.com/users/gggin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gggin/subscriptions","organizations_url":"https://api.github.com/users/gggin/orgs","repos_url":"https://api.github.com/users/gggin/repos","events_url":"https://api.github.com/users/gggin/events{/privacy}","received_events_url":"https://api.github.com/users/gggin/received_events","type":"User","site_admin":false},"created_at":"2016-03-18T01:27:20Z","updated_at":"2016-03-18T01:27:20Z","body":"how to let http-server good?(no header bug) I found so many issue in different repo but I cannot find a way to fix it."}}