Skip to content

Commit

Permalink
Fix - Ignore query params only for vcr cassettes
Browse files Browse the repository at this point in the history
  • Loading branch information
parroty committed Mar 2, 2014
1 parent 98bd95c commit c6208e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/exvcr/handler.ex
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ defmodule ExVCR.Handler do
defp match_by_url(response, keys, custom_mode) do
if custom_mode do
pattern = Regex.compile!("^#{response[:request].url}$")
Regex.match?(pattern, keys[:url])
Regex.match?(pattern, to_string(keys[:url]))
else
strip_query_params(response[:request].url) == strip_query_params(keys[:url])
end
Expand Down

0 comments on commit c6208e4

Please sign in to comment.