summaryrefslogtreecommitdiff
path: root/http/server_test.ts
diff options
context:
space:
mode:
authorVincent LE GOFF <g_n_s@hotmail.fr>2019-05-29 19:44:14 +0200
committerBert Belder <bertbelder@gmail.com>2019-05-29 10:44:14 -0700
commitc8ac9a0f58dcb35b0c1dd8d8ba3d508014b291dc (patch)
tree706f8b340f6d0aa2de4d243b486e398b3bfe0e2d /http/server_test.ts
parentb95f79d74cbcf3492abd95d4c90839e32f51399f (diff)
http: add rfc7230 handling (denoland/deno_std#451)
Original: https://github.com/denoland/deno_std/commit/1db594d5b0fd377ee6c749041b7265101f92eef1
Diffstat (limited to 'http/server_test.ts')
-rw-r--r--http/server_test.ts6
1 files changed, 6 insertions, 0 deletions
diff --git a/http/server_test.ts b/http/server_test.ts
index 32f12cc40..e24ab0be9 100644
--- a/http/server_test.ts
+++ b/http/server_test.ts
@@ -385,6 +385,12 @@ test(async function testReadRequestError(): Promise<void> {
10: {
in: "HEAD / HTTP/1.1\r\nContent-Length:0\r\nContent-Length: 0\r\n\r\n",
headers: [{ key: "Content-Length", value: "0" }]
+ },
+ 11: {
+ in:
+ "POST / HTTP/1.1\r\nContent-Length:0\r\ntransfer-encoding: chunked\r\n\r\n",
+ headers: [],
+ err: "http: Transfer-Encoding and Content-Length cannot be send together"
}
};
for (const p in testCases) {