flatiron/nock — pull request #51 by fent (2012-03-19 17:24:34+00:00)
Title: [fix] needed methods and flow timing for streaming response

Hi, I added 2 missing methods to the `response` object if it's a file readstream.

And I put `responseBody.resume()` inside of a `process.nextTick()`. This is needed because in some cases `data` events will be emitted in the same call stack if they've been buffered. If they are, the request callback won't have a chance to listen to them. `response.paused` will still be false.