Skip to content
Myr

Merge pull request #1506 from Lukasa/mockrequest

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Provide 'host' parameter to MockRequest.

authored by Kenneth Reitz · committed by Kenneth Reitz · parents 3e6e68b, 6ef3710 · Browse files · 1 file+4 added−0 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−0 removed

  • other:+4 added−0 removed

1 file+4 added−0 removed

modified:requests/cookies.py+4 added
72 unmodified lines
73 @property74 def origin_req_host(self):75 return self.get_origin_req_host()7677 @property78 def host(self):79 return self.get_host()808182class MockResponse(object):83 """Wraps a `httplib.HTTPMessage` to mimic a `urllib.addinfourl`.8485 ...what? Basically, expose the parsed HTTP headers from the server response
318 unmodified lines