Which broken server are you using?

On Thursday, June 20, 2013 11:20:46 AM UTC-7, Matt Sergeant wrote:
>
> Just posting this here so other people might find it...
>
> If you're doing HTTP requests in Node, and the remote server responds with 
> a Content-Length header, but then proceeds to send you content longer than 
> that, your Node request will emit an error with code HPE_INVALID_CONSTANT. 
> It's confusing because Node also emits this if the response doesn't start 
> with "HTTP". Might be useful to make it two errors.
>
> It's really hard to fix, and I did so with an ugly hack, which I won't 
> document here because it's frickin ugly and mixed in with other fixes to 
> badly formed http responses that I have to deal with.
>
> But hopefully this at least will serve as a search reference for when 
> people are super confused by this error message.
>
> Matt.
>

-- 
-- 
Job Board: http://jobs.nodejs.org/
Posting guidelines: 
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to