Add text/json as a mimetype to try deserializing

Fixes #503
pull/18777/head
Toshio Kuratomi 11 years ago committed by Matt Clay
parent 8c05023be3
commit 104b2d684c

@ -426,7 +426,8 @@ def main():
uresp[ukey] = value
if 'content_type' in uresp:
if uresp['content_type'].startswith('application/json'):
if uresp['content_type'].startswith('application/json') or \
uresp['content_type'].startswith('text/json'):
try:
js = json.loads(content)
uresp['json'] = js

Loading…
Cancel
Save