{"action":"created","issue":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/2651","repository_url":"https://api.github.com/repos/kennethreitz/requests","labels_url":"https://api.github.com/repos/kennethreitz/requests/issues/2651/labels{/name}","comments_url":"https://api.github.com/repos/kennethreitz/requests/issues/2651/comments","events_url":"https://api.github.com/repos/kennethreitz/requests/issues/2651/events","html_url":"https://github.com/kennethreitz/requests/issues/2651","id":90806236,"number":2651,"title":"Cannot make URL query string with a parameter without a value","user":{"login":"agilevic","id":1110390,"avatar_url":"https://avatars.githubusercontent.com/u/1110390?v=3","gravatar_id":"","url":"https://api.github.com/users/agilevic","html_url":"https://github.com/agilevic","followers_url":"https://api.github.com/users/agilevic/followers","following_url":"https://api.github.com/users/agilevic/following{/other_user}","gists_url":"https://api.github.com/users/agilevic/gists{/gist_id}","starred_url":"https://api.github.com/users/agilevic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agilevic/subscriptions","organizations_url":"https://api.github.com/users/agilevic/orgs","repos_url":"https://api.github.com/users/agilevic/repos","events_url":"https://api.github.com/users/agilevic/events{/privacy}","received_events_url":"https://api.github.com/users/agilevic/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":14,"created_at":"2015-06-24T23:35:06Z","updated_at":"2016-10-27T19:55:03Z","closed_at":"2015-11-05T17:59:07Z","body":"URL query string may contain a parameter, which has no value i.e. http://host/path/?foo or http://host/path/?a=1&foo. Currently Requests does not provide support for that. \r\n\r\n````\r\nIn [68]: d\r\nOut[68]: {'a': 1, 'foo': None}\r\n\r\nIn [69]: tl\r\nOut[69]: [('a', 1), ('foo',)]\r\n\r\nIn [70]: RequestEncodingMixin._encode_params(d)\r\nOut[70]: 'a=1'\r\n\r\nIn [71]: RequestEncodingMixin._encode_params(tl)\r\n---------------------------------------------------------------------------\r\nValueError                                Traceback (most recent call last)\r\n<ipython-input-71-5d4dac855108> in <module>()\r\n----> 1 RequestEncodingMixin._encode_params(tl)\r\n\r\n/home/f557010/jpm/local/lib/python2.7/site-packages/requests/models.pyc in _encode_params(data)\r\n     87         elif hasattr(data, '__iter__'):\r\n     88             result = []\r\n---> 89             for k, vs in to_key_val_list(data):\r\n     90                 if isinstance(vs, basestring) or not hasattr(vs, '__iter__'):\r\n     91                     vs = [vs]\r\n\r\nValueError: need more than 1 value to unpack\r\n```\r\nExpected:\r\n```\r\n'a=1&foo'\r\n```"},"comment":{"url":"https://api.github.com/repos/kennethreitz/requests/issues/comments/256751391","html_url":"https://github.com/kennethreitz/requests/issues/2651#issuecomment-256751391","issue_url":"https://api.github.com/repos/kennethreitz/requests/issues/2651","id":256751391,"user":{"login":"Lukasa","id":1382556,"avatar_url":"https://avatars.githubusercontent.com/u/1382556?v=3","gravatar_id":"","url":"https://api.github.com/users/Lukasa","html_url":"https://github.com/Lukasa","followers_url":"https://api.github.com/users/Lukasa/followers","following_url":"https://api.github.com/users/Lukasa/following{/other_user}","gists_url":"https://api.github.com/users/Lukasa/gists{/gist_id}","starred_url":"https://api.github.com/users/Lukasa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Lukasa/subscriptions","organizations_url":"https://api.github.com/users/Lukasa/orgs","repos_url":"https://api.github.com/users/Lukasa/repos","events_url":"https://api.github.com/users/Lukasa/events{/privacy}","received_events_url":"https://api.github.com/users/Lukasa/received_events","type":"User","site_admin":false},"created_at":"2016-10-27T19:55:03Z","updated_at":"2016-10-27T19:55:03Z","body":"So while that will definitely work, I don't think that API will get past Kenneth."}}
{"actor":{"display_login":"Lukasa"}}