Skip to content

Commit

Permalink
[add] test showing issue PSPDFKit-labs#122
Browse files Browse the repository at this point in the history
  • Loading branch information
Luca Dei Zotti committed Feb 25, 2022
1 parent 6436504 commit 4604539
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/bypass_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -587,4 +587,22 @@ defmodule BypassTest do
Bypass.open(:error)
end
end

test "Strange formed paths" do
path = "/a/strange/path/dotted:strange.string.that.may:happen"
path_parts = ["a", "strange", "path", "dotted:strange.string.that.may:happen"]

bypass = Bypass.open()

Bypass.expect(
bypass,
"POST",
path_parts,
fn conn ->
Plug.Conn.send_resp(conn, 200, "")
end
)

assert {:ok, 200, ""} = request(bypass.port, path)
end
end

0 comments on commit 4604539

Please sign in to comment.