Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a failing spec demonstrating a bug in the em-http-request adapter.
When a request is made to a URL that returns a 3xx response and the :redirects option is set, the globally_stub_request/after_request hooks are not paired properly. Both hooks should receive the original request and the redirect-following request. This spec should probably be re-written to use the local webmock server, but I couldn't figure out how to get it to conditionally send a redirect response since it writes directly to the socket and doesn't (as far as I can tell) have the request info available in that scope...so there's not easy way to have it send a different response for different requests :(. See myronmarston/vcr#171 for the original VCR issue that caused me to investigate this bug.
- Loading branch information