garycourt / uri-js

An RFC 3986 compliant, scheme extendable URI parsing/validating/normalizing/resolving library for JavaScript
Other
305 stars 69 forks source link

Path won't be parsed as lower case #11

Closed vzaidman closed 8 years ago

vzaidman commented 8 years ago

URI.normalize("https://WWW.GOOGLE.cOM/A/B/C.htmL") === "https://www.google.com/A/B/C.htmL" Is this on purpose? because equal fails as well for now. URI.equal("https://www.google.com/AA", "https://www.google.com/aa") === false

garycourt commented 8 years ago

Yes, this is intended behaviour.

According to section 6.2.2.1 of RFC 3986, path components are considered case sensitive. This also applies to HTTP schemes as defined in section 3.2.3 of RFC 2616.