Skip to content

Commit

Permalink
Fix spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
trikko committed May 22, 2024
1 parent 9f8241f commit a29b244
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test-02/source/app.d
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ void test()
}
assert(data == "HTTP/1.0 200 OK\r\nconnection: close\r\ncontent-length: 6\r\ncontent-type: text/plain\r\n\r\nsimple");
}

info("Testing boundary delimitation.");
{
string postBody ="
Expand All @@ -321,13 +321,13 @@ void test()

auto http = HTTP("http://127.0.0.1:8080/?");
http.setPostData(postBody,"multipart/form-data; boundary=2gnBwjvY18YFWfzZrUMe2XPYwTp");

http.method = HTTP.Method.post;
http.onReceive = (ubyte[] data) { return data.length; };
http.perform();

assert(http.statusLine.code == 422);

}
info("Testing crash endpoint. The server must not crash");
{
Expand Down

0 comments on commit a29b244

Please sign in to comment.