{"action":"created","issue":{"url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/240","repository_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty","labels_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/240/labels{/name}","comments_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/240/comments","events_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/240/events","html_url":"https://github.com/gabrielfalcao/HTTPretty/issues/240","id":69225808,"node_id":"MDU6SXNzdWU2OTIyNTgwOA==","number":240,"title":"`last_request.querystring` converting escaped pluses to spaces","user":{"login":"twolfson","id":902488,"node_id":"MDQ6VXNlcjkwMjQ4OA==","avatar_url":"https://avatars3.githubusercontent.com/u/902488?v=4","gravatar_id":"","url":"https://api.github.com/users/twolfson","html_url":"https://github.com/twolfson","followers_url":"https://api.github.com/users/twolfson/followers","following_url":"https://api.github.com/users/twolfson/following{/other_user}","gists_url":"https://api.github.com/users/twolfson/gists{/gist_id}","starred_url":"https://api.github.com/users/twolfson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/twolfson/subscriptions","organizations_url":"https://api.github.com/users/twolfson/orgs","repos_url":"https://api.github.com/users/twolfson/repos","events_url":"https://api.github.com/users/twolfson/events{/privacy}","received_events_url":"https://api.github.com/users/twolfson/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2015-04-17T22:00:22Z","updated_at":"2018-07-15T04:36:23Z","closed_at":null,"author_association":"NONE","body":"We are using HTTPretty for testing requests that carry along email addresses. Sometimes email addresses have `+'s` in them which are escaped to `%2B`. When they are being reversed for assertion in HTTPretty, it seems to be unescaping too many times in `querystring` (leading to a ` `).\n\n``` python\n# Open request with escaped `+` in it\nurllib2.urlopen('http://test.domain/?hello=world&email=todd%2Btest%40underdog.io')\n\n# Look at request received by httpretty\nlast_request = httpretty.last_request()\nprint last_request.path  # /?hello=world&email=todd%2Btest%40underdog.io\nprint last_request.querystring  # {u'hello': [u'world'], u'email': [u'todd test@underdog.io']}\n```\n\nI have created a proof of concept to reproduce the issue:\n\nhttps://gist.github.com/twolfson/9950fbeb31fc4f3ac33f\n\nI will be attempting to follow up with a PR to remedy the issue fully.\n"},"comment":{"url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/comments/405066799","html_url":"https://github.com/gabrielfalcao/HTTPretty/issues/240#issuecomment-405066799","issue_url":"https://api.github.com/repos/gabrielfalcao/HTTPretty/issues/240","id":405066799,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTA2Njc5OQ==","user":{"login":"ishtiaque-khan","id":37980794,"node_id":"MDQ6VXNlcjM3OTgwNzk0","avatar_url":"https://avatars3.githubusercontent.com/u/37980794?v=4","gravatar_id":"","url":"https://api.github.com/users/ishtiaque-khan","html_url":"https://github.com/ishtiaque-khan","followers_url":"https://api.github.com/users/ishtiaque-khan/followers","following_url":"https://api.github.com/users/ishtiaque-khan/following{/other_user}","gists_url":"https://api.github.com/users/ishtiaque-khan/gists{/gist_id}","starred_url":"https://api.github.com/users/ishtiaque-khan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishtiaque-khan/subscriptions","organizations_url":"https://api.github.com/users/ishtiaque-khan/orgs","repos_url":"https://api.github.com/users/ishtiaque-khan/repos","events_url":"https://api.github.com/users/ishtiaque-khan/events{/privacy}","received_events_url":"https://api.github.com/users/ishtiaque-khan/received_events","type":"User","site_admin":false},"created_at":"2018-07-15T04:36:23Z","updated_at":"2018-07-15T04:36:23Z","author_association":"NONE","body":"@twolfson I am guessing the fix is not yet merged. Any thoughts on the workaround for this?"}}
{"actor":{"display_login":"ishtiaque-khan"}}