summaryrefslogtreecommitdiff
path: root/requests
Commit message (Collapse)AuthorAgeFilesLines
* Improved content encoding detection.Jon Parise2013-09-031-1/+5
| | | | | | | | | | | | get_encodings_from_content() can now detect HTML in-document content encoding declarations in the following formats: - HTML5 - HTML4 - XHTML 1.x served with text/html MIME type - XHTML 1.x served as XML Ref: http://www.w3.org/International/questions/qa-html-encoding-declarations
* Skip cookie extraction if necessaryIan Cordasco2013-08-161-0/+3
| | | | | If _original_response is never set/is None, then don't try to extract cookies from the response.
* Merge pull request #1508 from dieterv/masterKenneth Reitz2013-07-311-3/+0
|\ | | | | remove duplicate comment
| * remove duplicate commentDieter Verfaillie2013-07-311-3/+0
| | | | | | This is already mentioned at line 357...
* | Merge pull request #1500 from gavrie/master2.0Kenneth Reitz2013-07-314-13/+22
|\ \ | | | | | | Update urllib3 to d89d508
| * | Update urllib3 to d89d508Gavrie Philipson2013-07-294-13/+22
| |/
* | Merge pull request #1498 from Lukasa/incompletereadKenneth Reitz2013-07-313-4/+16
|\ \ | | | | | | Wrap IncompleteRead in ChunkedEncodingError.
| * | Wrap IncompleteRead in ChunkedEncodingError.Cory Benfield2013-07-283-4/+16
| |/
* | Merge pull request #1501 from sigmavirus24/remove_setting_of_hooksKenneth Reitz2013-07-311-1/+0
|\ \ | | | | | | Fix duplication of efforts caught by @dofelw
| * | Fix duplication of efforts caught by @dofelwIan Cordasco2013-07-291-1/+0
| | |
* | | Merge pull request #1506 from Lukasa/mockrequestKenneth Reitz2013-07-311-0/+4
|\ \ \ | | | | | | | | Provide 'host' parameter to MockRequest.
| * | | Provide 'host' parameter to MockRequest.Cory Benfield2013-07-301-0/+4
| | |/ | |/|
* | | Merge settings when creating PreparedRequest, don't copy Request.Robert Estelle2013-07-312-56/+54
| | |
* | | Shallow copy of Request fields in Request.copy()Robert Estelle2013-07-301-6/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | This prevents e.g. modifying the headers of a copied request from affecting the headers of its source and vice versa. Copying is used with the intent to mutuate, so allowing this kind of mutation of fields makes sense. Is a deep copy better?
* | | Skip unneccessary Request.copy in Session.requestRobert Estelle2013-07-301-4/+6
| | |
* | | Prepare requests with session settings separately from sending.Robert Estelle2013-07-302-34/+61
|/ /
* | Merge pull request #1494 from Lukasa/closeCory Benfield2013-07-271-0/+5
|\ \ | | | | | | Document the Response.close() method.
| * | Document the Response.close() method.Cory Benfield2013-07-251-0/+5
| |/
* | Merge pull request #1476 from sigmavirus24/add_copy_to_prepared_requestsKenneth Reitz2013-07-261-0/+9
|\ \ | |/ |/| [2.0] Add copy method to PreparedRequest objects
| * Add copy method to PreparedRequest objectsIan Cordasco2013-07-201-1/+10
| |
* | Comment markups, courtesy of @sigmavirus24Cory Benfield2013-07-241-2/+2
| |
* | Better cookie docs on sessions.Cory Benfield2013-07-241-1/+4
| |
* | Fix test cases that fail when running behind a proxyDavid Pursehouse2013-07-231-1/+1
| | | | | | | | | | | | | | | | | | When sending a request via `Session.send()` the proxies must be explicitly given with the `proxies` argument. This is not done in the test cases, which means that they fail when run on a system that is behind a proxy. Update test cases to make sure the proxies are set in the sessions.
* | Fix a few warnings flagged by PyDevDavid Pursehouse2013-07-222-3/+2
|/ | | | | | - Unused import of urlparse - Unnecessary definition of variable - Incorrect indentation
* Update urllib3 to a43319fAudrius Butkevicius2013-07-184-19/+24
|
* Merge pull request #1440 from fcurella/patch-0Kenneth Reitz2013-07-151-0/+5
|\ | | | | unquote double-quotes cookie values
| * keep the double quotes, but don't escape themFlavio Curella2013-07-011-1/+1
| |
| * unquote double-quotes cookie valuesFlavio Curella2013-07-011-0/+5
| |
* | Merge pull request #1439 from voberoi/masterKenneth Reitz2013-07-151-2/+2
|\ \ | | | | | | Make sure netrc doesn't override any authentication settings explicitly set by the client
| * | .netrc settings shouldn't blow away explicit auth settings on a sessionVikram Oberoi2013-06-271-2/+2
| |/
* | Merge pull request #1441 from Lukasa/1395Kenneth Reitz2013-07-151-1/+1
|\ \ | | | | | | Remove urllib3-specific kwargs from non-urllib3 branch.
| * | Remove urllib3-specific kwargs from general codeCory Benfield2013-07-041-1/+1
| |/
* | Set 208 status_code to "already_reported"Philippe Ndiaye2013-07-131-0/+1
| |
* | Changed the "im_used" informational status code for the value given by IANA ↵Philippe Ndiaye2013-07-131-1/+1
|/ | | | | (226) See RFC 3229 at http://tools.ietf.org/html/rfc3229#section-10.4.1 and HTTP status codes at http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml
* @1434 Fix https://github.com/kennethreitz/requests/issues/1434Chen Huang2013-06-251-1/+1
|
* Use the new urllib3 stream generator.Cory Benfield2013-06-181-5/+12
|
* Update urllib3 to cffbd6b317Cory Benfield2013-06-182-1/+38
|
* Don't reuse PreparedRequest on redirectsRoman Haritonov2013-06-081-9/+7
|
* Merge pull request #1400 from jam/masterKenneth Reitz2013-06-082-17/+15
|\ | | | | Retrieve environment proxies using standard library functions
| * Use urllib to retrieve environment proxies.James Clarke2013-05-312-17/+15
| | | | | | This has the added benefit of including proxies defined by the OS X System Configuration framework and in the Windows registry, rather than only checking os.environ.
* | Merge pull request #1334 from rcarz/masterKenneth Reitz2013-06-081-0/+5
|\ \ | | | | | | resolve_redirects no longer throws an InvalidSchema exception when the scheme is uppercase
| * | resolve_redirects now checks for a scheme before converting the scheme to ↵Bob Carroll2013-05-261-2/+3
| | | | | | | | | | | | lowercase, added tests or the scheme casing
| * | resolve_redirects no longer throws an InvalidSchema exception when the ↵Bob Carroll2013-05-261-0/+4
| |/ | | | | | | scheme is uppercase
* | Merge pull request #1385 from ViktorHaag/masterKenneth Reitz2013-06-082-5/+5
|\ \ | | | | | | Cope with mixed-case URL schemes (like 'HTTP') by lower-ifying 'url' string before calling startswith() on it
| * | added tests for mixed-case scheme URLs, changed adapters passing down URLs ↵Viktor Haag2013-05-241-3/+3
| | | | | | | | | | | | into urllib3 by lower-ifying them so that the underlying pool manager can effectively pool by scheme as dictionary key
| * | - fixed func call syntax on lower to lower()Viktor Haag2013-05-242-2/+2
| | | | | | | | | | | | - added test cases for trying to test GETS on mixed-case schemas
| * | Lower-ify url before checking against prefix with startswith()Viktor Haag2013-05-242-2/+2
| | |
* | | Merge pull request #1381 from expandrive/masterKenneth Reitz2013-06-081-2/+2
|\ \ \ | | | | | | | | Don't force chunked transfer on 0-length file-like object.
| * | | Only switch to chunked if we don't know the length of a file like object. ↵Jeff Mancuso2013-05-231-2/+2
| |/ / | | | | | | | | | This fixes the case of trying to upload a 0-length file - chunked upload was being forced. Services like S3 that disallow chunked upload will fail.
* | | Merge pull request #1408 from wasw100/masterKenneth Reitz2013-06-081-5/+10
|\ \ \ | | | | | | | | cookies.morsel_to_cookie morsel['expires'] can't be strtime, and morsel['max-age'] convert to expires problem repair