Unfortunately, I think it's still the case:

 

https://github.com/joyent/http-parser/pull/158

 

From: [email protected] [mailto:[email protected]] On Behalf Of 
Kevin Ingwersen (Ingwie Phoenix)
Sent: Tuesday, January 13, 2015 10:11 AM
To: [email protected]
Subject: [nodejs] Please tell me this is no longer valid?!

 

So while working on a FCGI thing, I came across a very, very weird if statement:

 

                                    try {

                                                var parsed = 
htparser.execute(buffer, start, len);

                                                console.log("-> Parsed 
message:",parsed);

                                                if(parsed.message == "Parse 
Error" && ("bytesParsed" in parsed)) {

                                                            
_current.resp.write(buffer.slice(start + parsed.bytesParsed, start + len));

                                                }

                                    }

                                    catch(ex) {

                                                _current.cb(ex);

                                    }

 

This looked so off, that I added this console.log statement to read whats up. 
Result:

 

-> Parsed message: { [Error: Parse Error] bytesParsed: 0, code: 
'HPE_INVALID_METHOD‘ }

 

So I went and traced this error constant…and found:

 

http://www.chmod777self.com/2013/08/sigh.html

 

Good lord, please tell me this is no longer true? If so, this is rather 
embarrassing… xD

 

Kind regards, Ingwie

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/D075073A-7411-4E79-80D4-7C5F00E3DD6A%40googlemail.com
 
<https://groups.google.com/d/msgid/nodejs/D075073A-7411-4E79-80D4-7C5F00E3DD6A%40googlemail.com?utm_medium=email&utm_source=footer>
 .
For more options, visit https://groups.google.com/d/optout.

-- 
Job board: http://jobs.nodejs.org/
New group rules: 
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules: 
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 unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/nodejs/54b540ee.670eec0a.4d67.5a71%40mx.google.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to