about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-04-30 20:56:21 +0200
committerbptato <nincsnevem662@gmail.com>2023-04-30 20:56:21 +0200
commit90d10281be21c174e0f1528a7d893e126c78a405 (patch)
treee2ce74542770e35a29f3e5940c9a0ac53fad9832 /src
parent5697627af260aba5c44ef3156dd0b1d53229f8e0 (diff)
downloadchawan-90d10281be21c174e0f1528a7d893e126c78a405.tar.gz
Actually set proxy
Diffstat (limited to 'src')
-rw-r--r--src/io/request.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/io/request.nim b/src/io/request.nim
index 72631bed..ce42c61b 100644
--- a/src/io/request.nim
+++ b/src/io/request.nim
@@ -177,7 +177,7 @@ func newRequest*(url: URL, httpmethod = HTTP_GET, headers: seq[(string, string)]
   for pair in headers:
     let (k, v) = pair
     hl.table[k] = @[v]
-  return newRequest(url, httpmethod, hl, body, mode)
+  return newRequest(url, httpmethod, hl, body, mode, proxy = proxy)
 
 func createPotentialCORSRequest*(url: URL, destination: RequestDestination, cors: CORSAttribute, fallbackFlag = false): Request =
   var mode = if cors == NO_CORS: