diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-13 15:00:34 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-13 15:00:34 +0100 |
commit | 53bc47531543fe55997f4c6875fa03745a17e754 (patch) | |
tree | a7d3b3de2f68580a79415818bad84bf607e58c14 /adapter/protocol/http.nim | |
parent | 4818cb28debf4601213707f6c1b9b22348b51fbc (diff) | |
download | chawan-53bc47531543fe55997f4c6875fa03745a17e754.tar.gz |
Various fixes
* Makefile: fix parallel build, add new binaries to install target * twtstr: split out libunicode-related stuff to luwrap * config: quote default gopher2html URL env var for unquote * adapter/: get rid of types/url dependency, use CURL url in all cases
Diffstat (limited to 'adapter/protocol/http.nim')
-rw-r--r-- | adapter/protocol/http.nim | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/adapter/protocol/http.nim b/adapter/protocol/http.nim index e59cac0a..45a78c46 100644 --- a/adapter/protocol/http.nim +++ b/adapter/protocol/http.nim @@ -1,12 +1,10 @@ import std/envvars -import std/options import std/strutils import curlerrors import curlwrap import bindings/curl -import types/opt import utils/twtstr type @@ -111,7 +109,7 @@ proc main() = curl.setopt(CURLOPT_HTTPGET, 1) of "POST": curl.setopt(CURLOPT_POST, 1) - let len = parseInt64(getEnv("CONTENT_LENGTH")).get + let len = parseInt(getEnv("CONTENT_LENGTH")) # > For any given platform/compiler curl_off_t must be typedef'ed to # a 64-bit # > wide signed integral data type. The width of this data type must remain |