Skip to content

Commit

Permalink
Added a test in resolver_spec
Browse files Browse the repository at this point in the history
  • Loading branch information
subnetmarco committed Mar 25, 2016
1 parent efff148 commit 0c1678d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions spec/integration/proxy/resolver_spec.lua
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,11 @@ describe("Resolver", function()
assert.equal(200, status)
assert.equal("http://www.mockbin.org/request?hello=world", cjson.decode(response).url)
end)
it("should add a trailing slash when strip_path is enabled and the request has a final slash", function()
local response, status = http_client.get(spec_helper.PROXY_URL.."/test-trailing-slash/", {hello = "world"})
assert.equal(200, status)
assert.equal("http://www.mockbin.org/request/?hello=world", cjson.decode(response).url)
end)
end)

describe("Percent-encoding", function()
Expand Down

0 comments on commit 0c1678d

Please sign in to comment.