Skip to content

Commit

Permalink
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 4509b99 commit 98bd95c
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, strip_query_params(keys[:url]))
Regex.match?(pattern, keys[:url])
else
strip_query_params(response[:request].url) == strip_query_params(keys[:url])
end
Expand Down

0 comments on commit 98bd95c

Please sign in to comment.