golgote/neturl

Allow to use a different parameter separator

golgote opened this issue · 1 comments

Allow use of ; or & or whatever to separate query string parameters. This should be set in the parser or builder configuration.

works, example:

local url = require 'net.url'
url.options.separator = ";"
s = ";first=val1;;;;second=val2;third[1]=val3;";
q = url.parseQuery(s)

returns:

{
   ["first"] = "val1",
   ["second"] = "val2",
   ["third"] = {[1] = "val3"}
}