mirror of
https://github.com/nim-lang/Nim.git
synced 2026-05-03 12:34:44 +00:00
* Fix https://github.com/nim-lang/Nim/issues/13573 and https://github.com/nim-lang/Nim/issues/13574 * Restored asynchttpserver
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user