Closed tsloughter closed 3 years ago
lgtm except for https://travis-ci.org/github/elli-lib/elli/jobs/743673725. will plan to check on this tomorrow too
Won't it always be the case that {undefined, undefined, undefined} = {Scheme, Host, Port}
for {abs_path, FullPath}
? :+1: to this PR still, and for adding stuff like userinfo
and query
to the request.
Looks like uri_string:dissect_query/1
is failing on name=knut%3D&foo
with {error,missing_value,<<>>}
Seems like RFC 3986 doesn't specify, but that uri_string:dissect_query/1
doesn't support keys without values, at least on 21.3.
aaand. you already patched it :smile: https://github.com/erlang/otp/pull/1840
Hah, I don't remember patching that :+1:
Did you notice what is the earliest OTP with that patch? We should probably only use uri_string
from that version and above.
Did you notice what is the earliest OTP with that patch?
Looks like 22.0
We should probably only use
uri_string
from that version and above.
:+1:
This also fixes shit because currently it seems to always be returning
undefined
for scheme and other properties.I'd also like to extend the request to include the rest of the information
uri_string:parse
can give -- likeuserinfo
.We should re-evaluate what OTP versions to retain support for.