tjanczuk/iisnode — Issue #123: Issue with request module streams in http response
Author: markcowl
Created: 2011-12-16 22:38:05+00:00
State: open

The following code snippet produces an error when run in iisnode - this seems to be a relatively new development as was working in some previous versions:

var http = require('http'),
request = require('request');

http.createServer(function (req, res) {

request.get("http://nodejs.org/logo.png").pipe(res)
}).listen(process.env.PORT);