Skip to content
Myr

Bugfix: EnvironBuilder doesn't take `json`

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

authored by Markus Unterwaditzer · committed by Markus Unterwaditzer · parent 5c4fa7e · 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:flask/testing.py+1 added-1 removed
36 unmodified lines
3738 if 'json' in kwargs:39 if 'data' in kwargs:40 raise ValueError('Client cannot provide both `json` and `data`')41 kwargs['data'] = json_dumps(kwargs['json'])41 kwargs['data'] = json_dumps(kwargs.pop('json'))4243 # Only set Content-Type when not explicitly provided44 if 'content_type' not in kwargs:45 kwargs['content_type'] = 'application/json'
95 unmodified lines