Skip to content

Commit

Permalink
Test fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 11, 2023
1 parent 88d7d07 commit 57183da
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions test-1/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");

Expand Down Expand Up @@ -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");

Expand Down

0 comments on commit 57183da

Please sign in to comment.