{"action":"opened","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2912","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2912/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2912/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2912/events","html_url":"https://github.com/kennethreitz/requests/issues/2912","id":119840302,"number":2912,"title":"Question mark eaten from request URL if no params specified","user":{"login":"mloskot","id":80741,"avatar_url":"https://avatars.githubusercontent.com/u/80741?v=3","gravatar_id":"","url":"https://api.github.com/users/mloskot","html_url":"https://github.com/mloskot","followers_url":"https://api.github.com/users/mloskot/followers","following_url":"https://api.github.com/users/mloskot/following{/other_user}","gists_url":"https://api.github.com/users/mloskot/gists{/gist_id}","starred_url":"https://api.github.com/users/mloskot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mloskot/subscriptions","organizations_url":"https://api.github.com/users/mloskot/orgs","repos_url":"https://api.github.com/users/mloskot/repos","events_url":"https://api.github.com/users/mloskot/events{/privacy}","received_events_url":"https://api.github.com/users/mloskot/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-02T00:30:13Z","updated_at":"2015-12-02T00:30:13Z","closed_at":null,"body":"\r\nHere is an URL with question mark included, but without any parameters:\r\n```\r\nurl='http://server.com/api/item.json?'\r\n```\r\n\r\nThat URL (w/ question mark) controls server response in such way that it allows to request certain metadata about an item, instead of representation of an item iteself:\r\n```\r\nimport urllib3\r\nhttp = urllib3.PoolManager()\r\nr = http.request('GET', url)\r\nprint (r.data)\r\n{ \"ItemMetadata\" : { ... }}\r\n```\r\nThe above works well.\r\n\r\nRequests, however, eat-or-skip the question mark if the `params` argument is missing/`None`/`{}`, so my request is responded with the resource representation, instead of the metadata:\r\n```\r\nfrom requests import get\r\nr = get(url, stream=True)\r\nprint(r.text)\r\n{ \"Item\" : { ... }}\r\n```\r\n\r\nThat seem to indicate a bug in URL parsing."}}