You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
normalize_uri normalizes not the match expression (/http:\/\/bad\.com\/\?b=1\&a=2/), but the source URI (http://bad.com/?b=1&a=2), which happens to be a String 😛
The problem is that prior to matching, the URI is passed through
normalize_uri
which mangles it.For example:
which is incredibly confusing, given that error message contains exactly the same URL that I passed in, while in reality match happens against the URL with normalized parameters (see https://github.com/chrisk/fakeweb/blob/master/lib/fake_web/registry.rb#L58)
The text was updated successfully, but these errors were encountered: