Skip to content
Myr

Use general null check for JSON

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 e499b35 · Browse files · 1 file+1 added−1 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+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:requests/models.py+1 added-1 removed
412 unmodified lines
413 body = None414 content_type = None415 length = None416417 if data == {} and json is not None:417 if not data and json is not None:418 content_type = 'application/json'419 body = complexjson.dumps(json)420421 is_stream = all([
427 unmodified lines