Please sign in to comment.
Fix Net::HTTP adapter so that it returns `nil` for an empty body resp…
…onse. 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.
- Loading branch information...
Showing with 17 additions and 1 deletion.