Merge "Fix type of value in error middleware response header"
This commit is contained in:
commit
29b97a4c29
@ -85,7 +85,7 @@ class ParsableErrorMiddleware(object):
|
||||
else:
|
||||
body = [json.dumps({'error_message': '\n'.join(app_iter)})]
|
||||
state['headers'].append(('Content-Type', 'application/json'))
|
||||
state['headers'].append(('Content-Length', len(body[0])))
|
||||
state['headers'].append(('Content-Length', str(len(body[0]))))
|
||||
else:
|
||||
body = app_iter
|
||||
return body
|
||||
|
Loading…
x
Reference in New Issue
Block a user