attempt to fix serious asynchttpserver regression
This commit is contained in:
parent
dc4a30c6b1
commit
7f09d6bf1f
1 changed files with 1 additions and 1 deletions
|
|
@ -230,7 +230,7 @@ proc processClient(client: AsyncSocket, address: string,
|
|||
else:
|
||||
request.body = await client.recv(contentLength)
|
||||
assert request.body.len == contentLength
|
||||
else:
|
||||
elif request.reqMethod == "post":
|
||||
await request.respond(Http400, "Bad Request. No Content-Length.")
|
||||
continue
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue