Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
mtrudel committed Feb 18, 2024
1 parent 7fd1b6c commit 62314a5
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions test/bandit/http1/request_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,24 @@ defmodule HTTP1RequestTest do
test "keepalive mixed-case header connections are respected in HTTP/1.0", context do
client = SimpleHTTP1Client.tcp_client(context)

SimpleHTTP1Client.send(client, "GET", "/echo_components", ["host: localhost", "connection: Keep-Alive"], "1.0")
SimpleHTTP1Client.send(
client,
"GET",
"/echo_components",
["host: localhost", "connection: Keep-Alive"],
"1.0"
)

assert {:ok, "200 OK", _headers, _body} = SimpleHTTP1Client.recv_reply(client)

SimpleHTTP1Client.send(client, "GET", "/echo_components", ["host: localhost", "connection: Keep-Alive"], "1.0")
SimpleHTTP1Client.send(
client,
"GET",
"/echo_components",
["host: localhost", "connection: Keep-Alive"],
"1.0"
)

assert {:ok, "200 OK", _headers, _body} = SimpleHTTP1Client.recv_reply(client)
end

Expand Down

0 comments on commit 62314a5

Please sign in to comment.