Skip to content

Commit 8580d19

Browse files
committed
add failing test
1 parent 763e70c commit 8580d19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/mint/http1/request_test.exs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ defmodule Mint.HTTP1.RequestTest do
4242
assert Request.encode("GET", "/", [{"foo", "bar\r\n"}], nil) ==
4343
{:error, {:invalid_header_value, "foo", "bar\r\n"}}
4444
end
45+
46+
test "empty target" do
47+
assert Request.encode("GET", "", [], nil) ==
48+
{:error, {:invalid_target, ""}}
49+
end
4550
end
4651

4752
describe "encode_chunk/1" do

0 commit comments

Comments
 (0)