diff options
author | flywind <43030857+xflywind@users.noreply.github.com> | 2021-01-10 10:19:40 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-10 16:19:40 +0000 |
commit | f82100ac93ddb8977d2a404d2cd85975114f50ab (patch) | |
tree | ec4b1b63af8afd99a0857f245816e55d5c72d826 | |
parent | 7bde6aa37f52695736917a070bc25097f0cb0b34 (diff) | |
download | Nim-f82100ac93ddb8977d2a404d2cd85975114f50ab.tar.gz |
fix broken CI (#16663)
-rw-r--r-- | lib/pure/httpclient.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/httpclient.nim b/lib/pure/httpclient.nim index ea847ef8d..6acf8d9cd 100644 --- a/lib/pure/httpclient.nim +++ b/lib/pure/httpclient.nim @@ -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: |