Cory Benfield
084625cb3c
Merge pull request #3984 from PCMan/pcman@fix_iter_lines
...
Fix the additional newline generated by iter_lines() caused by a '\r\n' pair being separated in two different chunks.
2017-04-26 16:07:46 +01:00
Hong Jen-Yee (PCMan)
458df8f4f4
Fix the additional newline generated by iter_lines() caused by a '\r\n' pair being separated in two different chunks.
2017-04-26 23:02:57 +08:00
Cory Benfield
73456b0048
Merge pull request #3923 from vbarbaresi/3.0.0-iter_lines
...
Rebase #3745 and add some tests
2017-03-16 09:53:03 +00:00
Vincent Barbaresi
d491e9f9b2
use [-1] instead of endswith() to work with bytes or string
...
Also add a parametrize on decode_unicode for iter_lines() test
to check with bytestrings and str content
2017-03-15 22:29:18 +01:00
Vincent Barbaresi
052595ffbf
add explanatory comment about skipping null chunks in iter_lines
2017-03-15 12:16:32 +01:00
Vincent Barbaresi
cc2ac23c0d
remove useless brackets in iter_lines boolean condition
2017-03-15 01:37:55 +01:00
Vincent Barbaresi
5a8bc19384
add more tests for iter_lines()
...
check the case of an empty chunk somewhere in the stream
2017-03-15 01:37:55 +01:00
Vincent Barbaresi
0380ac5893
add some parametrized tests for iter_lines()
...
Write a list of different chunk splits and their expected results
to test against, using ianepperson's breakdown as specification:
https://github.com/kennethreitz/requests/pull/2431#issuecomment-72333964
2017-03-15 01:37:48 +01:00
Alex Chan
9881be25f3
Review markups for @Lukasa
2017-03-14 16:57:52 +01:00
Ian Epperson
9174925916
Fix bug when delimiter is split between responses
2017-03-14 16:57:52 +01:00
Ian Epperson
02031e3e14
Test to show bug when delimiter is split between reads
2017-03-14 16:57:52 +01:00
Cory Benfield
84dc6b66da
Merge pull request #3898 from nateprewitt/duplicate_exception
...
remove redundant exception declaration
2017-03-02 14:41:17 +00:00
Cory Benfield
35fc2b387f
Merge pull request #3897 from nateprewitt/prep_body
...
Refactor Prepare Body
2017-03-02 14:40:57 +00:00
Nate Prewitt
be2f92b9e3
updating HISTORY
2017-03-02 05:27:33 -07:00
Nate Prewitt
64b66b6409
test prepare_content_length sets expected headers
2017-03-02 05:27:22 -07:00
Nate Prewitt
5a65a0dab1
use InvalidHeader instead of ConflictingHeaderError
2017-03-01 07:32:14 -07:00
Nate Prewitt
3046a1eb54
remove redundant exception declaration
2017-02-28 16:08:48 -07:00
Nate Prewitt
a52fe6586c
consolidate super_len code and cleanup docstrings
2017-02-28 14:51:08 -07:00
Casey Davidson
f239fe754d
Change UnreachableCodeError to InvalidBodyError.
2017-02-28 14:49:52 -07:00
Casey Davidson
1003fdf0f2
Small fixes based on feedback in pull request.
2017-02-28 14:49:31 -07:00
Casey Davidson
033dfc165d
Raise an error if body is not null, has not length and is not streamable.
2017-02-28 14:49:20 -07:00
Casey Davidson
bfb202527d
Alternate fix for 3066 to refactor prepare_body to always call prepare_content_length.
...
This allows for the 'Content-Length' header to only be set in prepare_content_length.
2017-02-28 14:49:01 -07:00
Ian Cordasco
60339d17ee
Merge pull request #3886 from jvanasco/proposed/3.0.0
...
proposed 3.0 - altered internal loops of resolve_redirect
2017-02-25 09:05:39 -06:00
jonathan vanasco
8e07dae0fd
altered internal loops of how `SessionRedirectMixin.resolve_redirects and Session.send` handle redirect history. 3.0.0 branch
2017-02-22 13:23:21 -05:00
kennethreitz
b22833ce2a
Merge pull request #3874 from nateprewitt/merge_cleanup
...
variable name consistency
2017-02-21 14:04:24 -05:00
Nate Prewitt
b8a87e00d7
variable name consistency
2017-02-14 09:31:59 -07:00
Cory Benfield
56dd77fc52
Merge branch 'master' into proposed/3.0.0
2017-02-14 15:59:53 +00:00
Ian Cordasco
2414fa82c8
Merge pull request #3873 from nateprewitt/super_len_fix
...
properly handled failed seek
2017-02-14 09:43:19 -06:00
Nate Prewitt
f47aff68f1
properly handled failed seek
2017-02-14 07:45:41 -07:00
Cory Benfield
250b3e5c8c
Merge pull request #3868 from vmalloc/raise_for_status_return_self
...
Make Response.raise_for_status() return the response object if the response is successful
2017-02-12 09:58:08 +00:00
Rotem Yaari
efcbe93075
Make Response.raise_for_status() return the response object if the response is successful
...
This allows for chaining method calls in cases where we want to raise for bad codes but use the response otherwise,
e.g. requests.get(URL).raise_for_status().json()['value']
2017-02-12 11:11:40 +02:00
Cory Benfield
b26f4c7f58
Merge pull request #3869 from nateprewitt/auth_fix
...
revert removal of request param from resolve_redirects
2017-02-12 07:33:13 +00:00
kennethreitz
90f3842ed6
edmsynths
2017-02-12 02:18:50 -05:00
Nate Prewitt
16bbc7478f
revert removal of request param from resolve_redirects
2017-02-11 23:35:19 -07:00
kennethreitz
6cbebf782a
fixes
2017-02-11 15:17:27 -05:00
kennethreitz
f2fe735846
fixes
2017-02-11 15:16:09 -05:00
kennethreitz
e7b7574cfe
hhg2p
2017-02-11 15:14:47 -05:00
kennethreitz
6bd6249051
Merge pull request #3865 from JohnVillalovos/master
...
Allow use of 'no_proxy' in the proxies argument
2017-02-10 15:50:10 -06:00
kennethreitz
453397965b
Merge pull request #3846 from jvanasco/feature-pluggable_handling
...
initial attempt at `get_redirect_target`
2017-02-10 15:46:13 -06:00
jonathan vanasco
70f31a3166
* initial attempt at get_redirect_target
...
* removing the `i` from the redirect detection while-loop
2017-02-10 13:53:23 -05:00
kennethreitz
85a29f1da0
Merge branch 'issue2899' of https://github.com/thoger/requests into proposed/3.0.0
2017-02-10 12:44:02 -05:00
John L. Villalovos
85400d8d67
Allow use of 'no_proxy' in the proxies argument
...
Add the ability to add 'no_proxy' and a value to the 'proxies'
dictionary argument.
https://github.com/kennethreitz/requests/issues/2817
Closes gh-2817
2017-02-10 09:41:54 -08:00
Cory Benfield
241f2b2a6b
Merge branch 'master' into proposed/3.0.0
2017-02-10 17:40:52 +00:00
Cory Benfield
ad65b0cb19
Merge pull request #3862 from mattkohl/master
...
Updated docs for Pipenv
2017-02-10 12:19:01 +00:00
mattkohl
57659e5987
Removed duplicate key in Pipfile
2017-02-10 11:46:59 +00:00
mattkohl
c134388a43
Removed requirements.txt from MANIFEST.in
2017-02-10 10:51:14 +00:00
mattkohl
b41bb9ecb2
Added name & github link
2017-02-10 10:48:15 +00:00
mattkohl
a3e671d717
Updated test instructions for Pipenv
2017-02-10 10:47:40 +00:00
mattkohl
7b190acf82
Updated Pipfile to reflect version specs in setup.py; added Sphinx
2017-02-10 10:46:35 +00:00
mattkohl
a0b97253c2
Removed docs-init (depended on missing docs/requirements.txt)
2017-02-10 10:45:06 +00:00