On 04/03/12 at 03:19pm, mscdex wrote:

Not sure of the cause of your problem, but here's a couple of tips you
might find useful:

You can rewrite lines 45-55 as:

http.get(options, function(fb_res) {
 response.writeHead(fb_res.statusCode, '', fb_res.headers);
 fb_res.pipe(response);

Additionally, you can do a .write() and .end() for a response in one
go via: response.end('some text');

This hasn't changed the behaviour with nginx but has cleaned up the code, thank you :-)

--
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

Reply via email to