summaryrefslogtreecommitdiff
path: root/libs/luci-lib-httpclient/luasrc
Commit message (Collapse)AuthorAgeFilesLines
* luci-lib-httpclient: accept scoped IPv6 addressesJo-Philipp Wich2019-12-091-2/+2
| | | | | Ref: https://github.com/openwrt/luci/issues/3380 Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-lib-httpclient: prevent nil access with invalid IP address literalsJo-Philipp Wich2018-12-111-4/+4
| | | | | Fixes: a54baf7be ("luci-lib-httpclient: revamp URL handling") Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-lib-httpclient: revamp URL handlingJo-Philipp Wich2018-12-111-72/+123
| | | | | | | | | | | - 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>
* libs: move http.protocol.{date,mime,conditionals} to luci-lib-httpprotoutilsJo-Philipp Wich2018-04-181-1/+1
| | | | | | | Also adjust the dependencies of components depending on these classes and flatten the namespace from luci.http.protocol.* to luci.http.* Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* luci-base: fold luci.http.protocol into luci.httpJo-Philipp Wich2018-04-181-1/+1
| | | | | | | | | | With only the decoder routines remaining in luci.http.protocol, it makes no sense to keep the low level protocol class around, so fold the remaining code into the central luci.http class. Also adjust the few direct users of luci.http.protocol accordingly. Signed-off-by: Jo-Philipp Wich <jo@mein.io>
* add params support in optionsYuzo2015-01-221-1/+5
|
* send Cookie in a single header line, follow browser behaviorYuzo2015-01-221-14/+20
|
* add sock::readall() to ensure the response body is completeYuzo2015-01-221-1/+1
|
* Globally reduce copyright headersJo-Philipp Wich2015-01-162-26/+4
| | | | Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
* Rework LuCI build systemJo-Philipp Wich2015-01-082-0/+664
* Rename subdirectories to their repective OpenWrt package names * Make each LuCI module its own standalone package * Deploy a shared luci.mk which is used by each module Makefile Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>