about summary refs log tree commit diff stats
path: root/adapter/protocol/http.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-12-16 14:53:34 +0100
committerbptato <nincsnevem662@gmail.com>2023-12-16 14:53:41 +0100
commit3f2bc1069142ae13f9991102a0c01cd1291b08e8 (patch)
tree0c5152368425d50931589e9d41d3f33ae54a1162 /adapter/protocol/http.nim
parent25988dfa3bd77c16eb29bdb8087d286c66c4cd7a (diff)
downloadchawan-3f2bc1069142ae13f9991102a0c01cd1291b08e8.tar.gz
Fix compilation on Nim 1.6.14
Diffstat (limited to 'adapter/protocol/http.nim')
-rw-r--r--adapter/protocol/http.nim5
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