mochi / mochiweb

MochiWeb is an Erlang library for building lightweight HTTP servers.
Other
1.86k stars 474 forks source link

Add unquote_path/1 for separate + encoding #234

Closed noahshaw11 closed 3 years ago

noahshaw11 commented 3 years ago

Currently, + is always encoded into space. This PR adds a separate unquote_path/1 function that does not encode + into space. See RFC 3986, specifically:

pchar   = unreserved / pct-encoded / sub-delims / ":" / "@"` 
sub-delims    = "!" / "$" / "&" / "'" / "(" / ")" / "*" / "+" / "," / ";" / "="