mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-17 08:34:20 +00:00
fix broken CI (#16663)
This commit is contained in:
@@ -979,7 +979,7 @@ proc requestAux(client: HttpClient | AsyncHttpClient, url: Uri,
|
||||
else:
|
||||
if body.len != 0:
|
||||
client.headers["Content-Length"] = $body.len
|
||||
elif httpMethod notin ["GET", "HEAD"] and not client.headers.hasKey("Content-Length"):
|
||||
elif httpMethod notin [HttpGet, HttpHead] and not client.headers.hasKey("Content-Length"):
|
||||
client.headers["Content-Length"] = "0"
|
||||
|
||||
when client is AsyncHttpClient:
|
||||
|
||||
Reference in New Issue
Block a user