Skip to content
Myr

Changes check on base and json. Fails on tests.

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

authored by Carol Willing · committed by Carol Willing · parent b34a496 · Browse files · 1 file+5 added−6 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+5 added−6 removed

  • other:+5 added−6 removed

1 file+5 added−6 removed

modified:requests/models.py+5 added-6 removed
440 unmodified lines
441 # Multi-part file uploads.442 if files:443 (body, content_type) = self._encode_files(files, data)444 else:445 if data and not _json:445 if data and _json is None:446 body = self._encode_params(data)447 if not _json:448 if isinstance(data, basestring) or hasattr(data, 'read'):449 content_type = None450 else:451 content_type = 'application/x-www-form-urlencoded'447 if isinstance(data, basestring) or hasattr(data, 'read'):448 content_type = None449 else:450 content_type = 'application/x-www-form-urlencoded'451452 self.prepare_content_length(body)453454 # Add content-type if it wasn't explicitly provided.
371 unmodified lines