Commit graph

8 commits

Author SHA1 Message Date
Correl Roush
a4e0458534 Fix extra slash being added on root path URIs
The following bug was introduced in d6de7e83:

{https, undefined, "www.example.com", 443, "/", undefined, undefined},
  was being built as
"https://www.example.com//"

This corrects the issue by not appending a slash when the root
path ("/") is specified (it should behave the same as passing an
empty ("") path).
2018-04-13 14:02:59 -04:00
Correl Roush
d6de7e8374 Preserve the trailing slash on paths when building URIs
Paths with and without trailing slashes are distinct, therefore a
trailing slash in the path should be preserved when building the URI.
2018-04-05 16:11:25 -04:00
Gavin M. Roy
2850835414 Add percent_encode/2 and plus_encode/2 2016-10-27 12:02:26 -04:00
Gavin M. Roy
63a72b114e Remove unused include 2016-01-22 10:36:33 -05:00
Gavin M. Roy
56c320572f Implement the initial API 2016-01-21 23:04:34 -05:00
Gavin M. Roy
7b05c0c2b5 WIP commit 2016-01-08 23:21:49 -05:00
Gavin M. Roy
f16b0be421 Add test, remove encode/2, encode_plus/2 2016-01-08 22:39:08 -05:00
Gavin M. Roy
2f0dc1ce28 Initial WIP source 2016-01-08 22:00:14 -05:00