Skip to content
Myr

Partially revert ab84f9be5740d4649d734e73b84f17f85e52ffc9

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

authored by Cory Benfield · committed by Cory Benfield · parent 8686255 · Browse files · 1 file+3 added−2 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+3 added−2 removed

  • other:+3 added−2 removed

1 file+3 added−2 removed

modified:requests/models.py+3 added-2 removed
28 unmodified lines
29 stream_decode_response_unicode, to_key_val_list, parse_header_links,30 iter_slices, guess_json_utf, super_len, to_native_string)31from .compat import (32 cookielib, urlunparse, urlsplit, urlencode, str, bytes, StringIO,33 is_py2, chardet, json, builtin_str, basestring)33 is_py2, chardet, builtin_str, basestring)34from .compat import json as complexjson35from .status_codes import codes3637#: The set of HTTP status codes that indicate an automatically38#: processable redirect.
376 unmodified lines
415 length = None416417 if json is not None:418 content_type = 'application/json'418 body = json.dumps(json)419 body = complexjson.dumps(json)420421 is_stream = all([422 hasattr(data, '__iter__'),423 not isinstance(data, (basestring, list, tuple, dict))
419 unmodified lines