Skip to content
Myr

respect request charset

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

authored by Steve Romanow · committed by Armin Ronacher · parent 0171177 · Browse files · 1 file+7 added−1 removed
This commit

State

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

Trailers

  • Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>

Diff stats

1 file+7 added−1 removed

  • other:+7 added−1 removed

1 file+7 added−1 removed

modified:flask/wrappers.py+7 added-1 removed
71 unmodified lines
72 """73 if __debug__:74 _assert_have_json()75 if self.mimetype == 'application/json':76 request_charset = self.mimetype_params.get('charset')77 if request_charset is not None:78 j = json.loads(self.data, encoding=request_charset )79 else:76 return json.loads(self.data)80 j = json.loads(self.data)8182 return j838485class Response(ResponseBase):86 """The response object that is used by default in Flask. Works like the87 response object from Werkzeug but is set to have an HTML mimetype by88 default. Quite often you don't have to create this object yourself because
6 unmodified lines