[erlang-questions] Should uri_string:dissect_query/1 be able to parse this?

Loïc Hoguin essen@REDACTED
Fri May 10 09:59:37 CEST 2019


Not just common, it's not an error. The parsing code must be 
https://url.spec.whatwg.org/#urlencoded-parsing to be correct.

On 10/05/2019 09:50, Marc Worrell wrote:
> A query argument without a ‘=‘ is something you see quite often.
> So in my opinion the uri_string module should be able to handle it.
> 
> - Marc
> 
> 
>> On 10 May 2019, at 04:31, Leo Liu <sdl.web@REDACTED> wrote:
>>
>> uri_string is a solid module and great addition. I like using it
>> whenever possible. But,
>>
>>> uri_string:dissect_query("b=12&a").
>>   {error,missing_value,<<>>}
>>
>> whenever there is a key without a trailing =.
>>
>> Does it make more sense to be able to parse these query strings?
>>
>> _______________________________________________
>> erlang-questions mailing list
>> erlang-questions@REDACTED
>> http://erlang.org/mailman/listinfo/erlang-questions
> 
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
> 

-- 
Loïc Hoguin
https://ninenines.eu



More information about the erlang-questions mailing list