Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom http headers when downloading packages #3332

Merged
merged 4 commits into from Feb 4, 2023
Merged

add custom http headers when downloading packages #3332

merged 4 commits into from Feb 4, 2023

Conversation

waruqi
Copy link
Member

@waruqi waruqi commented Feb 4, 2023

For all http urls

package("xxx")
    set_policy("package.download.http_headers", "TEST1:foo", "TEST2:bar")

For the given url

add_urls("https://github.com/madler/zlib/archive/$(version).tar.gz", {
    http_headers = {"TEST1: foo", "TEST2: bar"}
})

@waruqi waruqi added this to the v2.7.7 milestone Feb 4, 2023
@waruqi waruqi merged commit 2301d34 into dev Feb 4, 2023
@waruqi waruqi deleted the download branch February 4, 2023 04:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant