summary refs log tree commit diff stats
path: root/tests/stdlib
diff options
context:
space:
mode:
authorAndrea Ferretti <ferrettiandrea@gmail.com>2020-03-06 19:38:56 +0100
committerGitHub <noreply@github.com>2020-03-06 18:38:56 +0000
commit7ae081181831dcfe8ab83811f2b209c552c61fc7 (patch)
treedc28a8bbfbc8466988f11afa1cac8e9b9bd11991 /tests/stdlib
parent4bd388ad58ba246dce74aaa41b617b7cad0fff36 (diff)
downloadNim-7ae081181831dcfe8ab83811f2b209c552c61fc7.tar.gz
Fix #13573 and #13574 (#13575)
* Fix https://github.com/nim-lang/Nim/issues/13573 and https://github.com/nim-lang/Nim/issues/13574

* Restored asynchttpserver
Diffstat (limited to 'tests/stdlib')
-rw-r--r--tests/stdlib/thttpcore.nim7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/stdlib/thttpcore.nim b/tests/stdlib/thttpcore.nim
index 889c734c5..f96fcc3b8 100644
--- a/tests/stdlib/thttpcore.nim
+++ b/tests/stdlib/thttpcore.nim
@@ -4,7 +4,7 @@ output: "[Suite] httpcore"
 
 import unittest
 
-import httpcore
+import httpcore, strutils
 
 suite "httpcore":
 
@@ -29,3 +29,8 @@ suite "httpcore":
     assert "baR" in h["cookiE"]
     h.del("coOKie")
     assert h.len == 0
+
+    # Test that header constructor works with repeated values
+    let h1 = newHttpHeaders({"a": "1", "a": "2", "A": "3"})
+
+    assert seq[string](h1["a"]).join(",") == "1,2,3"