diff options
author | bptato <nincsnevem662@gmail.com> | 2023-12-16 14:53:34 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-12-16 14:53:41 +0100 |
commit | 3f2bc1069142ae13f9991102a0c01cd1291b08e8 (patch) | |
tree | 0c5152368425d50931589e9d41d3f33ae54a1162 /adapter/protocol/http.nim | |
parent | 25988dfa3bd77c16eb29bdb8087d286c66c4cd7a (diff) | |
download | chawan-3f2bc1069142ae13f9991102a0c01cd1291b08e8.tar.gz |
Fix compilation on Nim 1.6.14
Diffstat (limited to 'adapter/protocol/http.nim')
-rw-r--r-- | adapter/protocol/http.nim | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/adapter/protocol/http.nim b/adapter/protocol/http.nim index d973bd1d..07e1d0ad 100644 --- a/adapter/protocol/http.nim +++ b/adapter/protocol/http.nim @@ -1,4 +1,7 @@ -import std/envvars +when NimMajor >= 2: + import std/envvars +else: + import std/os import std/strutils import curl |