VCRURLConnection doesn’t properly record requests if they have the same method and same URL but different headers and/or body. This is obvious when looking at the source code since VCRRequestKey is based on the URI and method properties only.
An example where this behavior becomes problematic is when using the Range header. Say you first ask for range 0-123 then you ask for range 0-12345. The second request will never be recorded because it’s considered equal to the first one since it has the same URL and same method.
I plan to work on this issue but before I start I’d like to know what’s the status of #16 as these issues are slightly related.
VCRURLConnection doesn’t properly record requests if they have the same method and same URL but different headers and/or body. This is obvious when looking at the source code since
VCRRequestKeyis based on theURIandmethodproperties only.An example where this behavior becomes problematic is when using the
Rangeheader. Say you first ask for range 0-123 then you ask for range 0-12345. The second request will never be recorded because it’s considered equal to the first one since it has the same URL and same method.I plan to work on this issue but before I start I’d like to know what’s the status of #16 as these issues are slightly related.