Skip to content

check-date-http: stop depending on luci-lib-httpclient #1187

@ilario

Description

@ilario

Similar to #720 that was fixed by #722

Installing check-date-http pulls all these dependencies, which are cascading from the dependency from luci-lib-httpclient:

liblucihttp0 cgi-io liblucihttp-lua luci-lib-base rpcd rpcd-mod-file rpcd-mod-luci rpcd-mod-ucode ucode-mod-math ucode-mod-html liblucihttp-ucode luci-base ucode-mod-lua luci-lua-runtime luci-lib-httpprotoutils

The sum of the IPK packages of these dependencies is around 300 kB.

That library is used here:

local success, response, algo = pcall(http.request_raw, url, httpOptions)

It should be replaced by some other tool, like uclient-fetch, if possible.

Maybe, the solution from #722 can be adapted to work also here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions