Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Kong/kong
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a9c33a4eb98e5545537700d2a89ff610e6c17756
Choose a base ref
..
head repository: Kong/kong
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: dbe121f5e5ec2747906e0eee81f7852518e0a426
Choose a head ref
Showing with 4 additions and 0 deletions.
  1. +4 −0 spec/01-unit/18-tools_uri_spec.lua
4 changes: 4 additions & 0 deletions spec/01-unit/18-tools_uri_spec.lua
Original file line number Diff line number Diff line change
@@ -50,6 +50,10 @@ describe("kong.tools.uri", function()
it("does not decode non-ASCII characters that are unreserved, issue #2366", function()
assert.equal("/endel%C3%B8st", uri.normalize("/endel%C3%B8st"))
end)

it("does normalize complex uri that has characters outside of normal uri charset", function()
assert.equal("/%C3%A4/a./a/_%99%AF%2F%2F" , uri.normalize("/ä/a/%2e./a%2E//a/%2e/./a/../a/%2e%2E/%5f%99%af%2f%2F", true))
end)
end)

describe("escape()", function()