Skip to content

Commit 7c02ad4

Browse files
authored
Merge pull request #331 from pepijndevos/patch-1
allow empty PUT body
2 parents 00740a2 + e2481b5 commit 7c02ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_server_proxy/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ async def proxy(self, host, port, proxied_path):
293293

294294
body = self.request.body
295295
if not body:
296-
if self.request.method == 'POST':
296+
if self.request.method in {'POST', 'PUT'}:
297297
body = b''
298298
else:
299299
body = None

0 commit comments

Comments
 (0)