summary refs log tree commit diff stats
path: root/lib/pure/httpclient.nim
diff options
context:
space:
mode:
authorflywind <43030857+xflywind@users.noreply.github.com>2021-01-10 10:19:40 -0600
committerGitHub <noreply@github.com>2021-01-10 16:19:40 +0000
commitf82100ac93ddb8977d2a404d2cd85975114f50ab (patch)
treeec4b1b63af8afd99a0857f245816e55d5c72d826 /lib/pure/httpclient.nim
parent7bde6aa37f52695736917a070bc25097f0cb0b34 (diff)
downloadNim-f82100ac93ddb8977d2a404d2cd85975114f50ab.tar.gz
fix broken CI (#16663)
Diffstat (limited to 'lib/pure/httpclient.nim')
-rw-r--r--lib/pure/httpclient.nim2
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: