diff options
author | Jo-Philipp Wich <jo@mein.io> | 2018-12-11 08:57:36 +0100 |
---|---|---|
committer | Jo-Philipp Wich <jo@mein.io> | 2018-12-11 09:12:32 +0100 |
commit | a54baf7be0d293b50c6b2754c11d61e6e2ad82af (patch) | |
tree | 8a3a800f4a05cce3fc4e249ea8d324f927cba163 /modules/luci-mod-network | |
parent | b94be57affcbb8eeb7f2f6a3561ebeccaa40cf6f (diff) |
luci-lib-httpclient: revamp URL handling
- Introduce a parse_url() helper which properly deals with literal IPv4
and IPv6 host parts and returns the decomposed uri string as table
- Properly format IPv6 literals in autogenerated Host headers
- Omit default port numbers in Host headers and calculated redirect URLs.
Supersedes PR #2337.
Signed-off-by: Jo-Philipp Wich <jo@mein.io>
Diffstat (limited to 'modules/luci-mod-network')
0 files changed, 0 insertions, 0 deletions