We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents ec7ae2b + 390f28e commit 6c3aa82Copy full SHA for 6c3aa82
kernel_gateway/notebook_http/request_utils.py
@@ -65,7 +65,7 @@ def parse_body(request):
65
"""
66
content_type = TEXT_PLAIN
67
body = request.body
68
- body = '' if body is b'' or body is None else body.decode(encoding='UTF-8')
+ body = body.decode(encoding='UTF-8') if body else ''
69
if 'Content-Type' in request.headers:
70
content_type = request.headers['Content-Type']
71
return_body = body
0 commit comments