Diff

spec/util_http_spec.lua @ 10434:8f709577fe8e

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 23 Nov 2019 23:12:01 +0100
parent 9785:ff88b03c343f
child 10711:d2e4584ba7b3
line wrap: on
line diff
--- a/spec/util_http_spec.lua	Sat Nov 23 23:11:03 2019 +0100
+++ b/spec/util_http_spec.lua	Sat Nov 23 23:12:01 2019 +0100
@@ -28,6 +28,11 @@
 		it("should decode important URL characters", function()
 			assert.are.equal("This & that = something", http.urldecode("This%20%26%20that%20%3d%20something"), "Important URL chars escaped");
 		end);
+
+		it("should decode both lower and uppercase", function ()
+			assert.are.equal("This & that = {something}.", http.urldecode("This%20%26%20that%20%3D%20%7Bsomething%7D%2E"), "Important URL chars escaped");
+		end);
+
 	end);
 
 	describe("#formencode()", function()