kennethreitz/requests — Issue #245: malformed url when using digest with query-strings
Author: mfeif
Created: 2011-11-07 22:08:26+00:00
State: open

When using digest auth and a URL containing a "?" the question mark is removed, it seems, from the url.

For example,

r = requests.get('http://foo.com/bar.json', auth=('digest', 'blah', 'bloh'))

works, but:

r = requests.get('http://foo.com/bar.json?really=yes', auth=('digest', 'blah', 'bloh'))

Fails. Inspecting r.request.headers['uri'] shows:

'http://foo.com/bar.jsonreally=yes'