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
I'm having trouble reproducing this. Net::HTTP seems to send out that request as-is, with no escaping of the query string. Here's my test (which passes):
Thanks for your response. I agree with you that the above test works fine. In my real-world app I am actually using rest-client (http://github.com/archiloque/rest-client) to send requests, so I can only assume that rest-client is itself changing the URI before sending it to Net::HTTP.
However, it would be quite nice if Fakeweb could recognise CGI encoding in URIs and treat in indifferently. In other words, it would be nice if the following modified test passed (which would have solved my problem):
Hiya,
I have a URI like this:
http:://test.host/resource?date=2010-07-28T14:19:47Z
When Net::HTTP sends the request, it has turned it into:
http:://test.host/resource?date=2010-07-28T14%3A19%3A47Z
Which then doesn't get matched by FakeWeb.
If I put the parameter through CGI.escape then that solves the problem for me, but it'd be nice if FakeWeb worked that out itself.
Cheers
The text was updated successfully, but these errors were encountered: