bblimke/webmock — pull request #190 by myronmarston (2012-06-12 06:17:49+00:00)
Title: Fix Net::HTTP adapter so that it returns `nil` for an empty body response.

This mirrors the real behavior of Net::HTTP and is the source of myronmarston/vcr#173.

A couple things to note:

- Rather than hitting an external URL (httpstat.us/204), this should probably
hit the local webmock server; however, I can't figure out how to make the
webmock server return a different response for different requests since it's
writing directly to the socket w/o any request context available. Maybe it
should be refactored to use rack or sinatra?
- I have no idea why, but Curb is returning a 400 Bad Request response for
the request. Weird. Not sure why or how to fix it.