-
Notifications
You must be signed in to change notification settings - Fork 2
Open
Description
First of all the server works great with browsers -
I'm trying to make a client with NodeJS and I've spent my whole afternoon trying to figure out what Node doesn't like about the picohttp response. Node.js has apparently become more picky over time - lots of people are complaining about it.
But anyway I had to make a couple changes
in HelloWorldRequestProcess, the Reponse string starts out with HTTP 1.1, but it needs to be HTTP/1.1
The 2nd problem which is that the spec says the line endings need to be CRLF. the line endings I was getting were just LFs.
I'm using VSCode, and since it is a literal string perhaps that makes a difference.
var responseString ="HTTP/1.1 200 OK\r\nContent-Type: text/html\r\nContent-Length: " + message.Length + "\r\n";
responseString += "\r\n" + message;
Metadata
Metadata
Assignees
Labels
No labels