diff options
author | ringabout <43030857+ringabout@users.noreply.github.com> | 2023-10-03 11:00:24 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-03 11:00:24 +0800 |
commit | 5d5c39e7452af71162c6d9b499dffe86d9c2d485 (patch) | |
tree | 0f302f98067a87e3f7d85ae39061da536d30ab8d /tests | |
parent | 642ac0c1c31063ae966d8448c64c539203432e94 (diff) | |
download | Nim-5d5c39e7452af71162c6d9b499dffe86d9c2d485.tar.gz |
fixes #22778 regression: contentLength implementation type mismatched (#22780)
fixes #22778 follow up https://github.com/nim-lang/Nim/pull/19835
Diffstat (limited to 'tests')
-rw-r--r-- | tests/stdlib/tasynchttpserver.nim | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/stdlib/tasynchttpserver.nim b/tests/stdlib/tasynchttpserver.nim index 8cf0d0ced..5a7e2da40 100644 --- a/tests/stdlib/tasynchttpserver.nim +++ b/tests/stdlib/tasynchttpserver.nim @@ -109,6 +109,7 @@ proc testCustomContentLength() {.async.} = doAssert(body == "") doAssert(response.headers.hasKey("Content-Length")) doAssert(response.headers["Content-Length"] == "0") + doAssert contentLength(response) == 0 # bug #22778 runTest(handler, request, test) |