[PATCH] --header option to pass additional raw HTTP headers

Sergey Ponomarev stokito at gmail.com
Sun May 9 02:51:49 PDT 2021

Hi Petr and thank you for the review. I'm not sure what to add to the
option described in man but here is a comment that I made:

You can add a custom HTTP header(s) to request:

    wget --header='Authorization: Bearer TOKEN' \
        --header='If-Modified-Since: Wed, 9 May 2021 12:16:00 GMT' \

Some headers like Authorization or User-Agent may be already set by
--password or --user-agent.
We may override them but it's a protection from user itself.
To keep code concise the logic omitted.

I don't know how to update the patch because when I sent it created a
new PR or patchwork.
So please change the commit description yourself.

On Sun, 9 May 2021 at 10:24, Petr Štetiar <ynezz at true.cz> wrote:
> Sergey Ponomarev <stokito at gmail.com> [2021-05-08 22:23:43]:
> As stated in https://openwrt.org/submitting-patches your v2 should look like:
>  Subject: [PATCH uclient] uclient-fetch: add support for --header option
>  put missing commit description here
> > Signed-off-by: Sergey Ponomarev <stokito at gmail.com>

More information about the openwrt-devel mailing list