parroty / exvcr

HTTP request/response recording library for elixir, inspired by VCR.
MIT License
720 stars 131 forks source link

Only matches Hackney calls to request/5 #144

Closed frm closed 4 years ago

frm commented 4 years ago

When calling either of

:hackney.head(url)
:hackney.request(:head, url)

No request is matched in the target_methods/1 call, probably due to the fact that head function calls in hackney don't call the body function (see 0.14.0 - 2014/09/18).

As a result, when making :hackney.head/1 calls, the request is actually hitting the destination instead of being captured.