From 57183dafaa8e8ef0042724a9d8e1f724675df336 Mon Sep 17 00:00:00 2001 From: Andrea Fontana Date: Thu, 11 May 2023 18:25:55 +0200 Subject: [PATCH] Test fixed --- test-1/source/app.d | 3 --- 1 file changed, 3 deletions(-) diff --git a/test-1/source/app.d b/test-1/source/app.d index 73b3a1e..80afdab 100644 --- a/test-1/source/app.d +++ b/test-1/source/app.d @@ -74,7 +74,6 @@ void json(Request r, Output o) v.object["post"] = r.post.data.byKeyValue.map!(x => x.key ~ ":" ~ x.value).array; v.object["cookie"] = r.cookie.data.byKeyValue.map!(x => x.key ~ ":" ~ x.value).array; v.object["headers"] = r.header.data.byKeyValue.map!(x => x.key ~ ":" ~ x.value).array; - v.object["protocol"] = r.protocol; v.object["method"] = r.method.to!string.toUpper; v.object["host"] = r.host; v.object["uri"] = r.uri; @@ -152,7 +151,6 @@ void test() auto j = parseJSON(content); assert(j["method"].str == "POST"); - assert(j["protocol"].str == "http"); assert(j["uri"].str == "/json/dump/test"); assert(j["host"].str == "localhost:8080"); @@ -198,7 +196,6 @@ Content-Type: application/json\r auto j = parseJSON(content); assert(j["method"].str == "POST"); - assert(j["protocol"].str == "http"); assert(j["uri"].str == "/json/dump/test"); assert(j["host"].str == "127.0.0.1:8080");