Skip to content

feat: Allow for specifying global --header options to config requests - #1146

Closed
kamilogorek wants to merge 1 commit into
masterfrom
headers-option
Closed

kamilogorek wants to merge 1 commit into
masterfrom
headers-option

Conversation

@kamilogorek

@kamilogorek kamilogorek commented Mar 15, 2022 •

Copy link
Copy Markdown
Contributor

Back in the #970 CUSTOM_HEADER env variable and defaults.custom_header config option were introduced. This however was limited to a single header being passed.

In this PR, I add --header/-h flag as a global option that can be provided multiple times, and will be propagated down to every request.

This still plays nicely with the old solution and fallbacks to their values if configured.

Note: In v2, I'll change CUSTOM_HEADER to SENTRY_HEADER and defaults.custom_header to default.header to make it more unified.

Closes #1142

cc @mathew-cf

@kamilogorek kamilogorek changed the title Headers option feat: Allow for specifying global --header options to config requests Mar 15, 2022
@kamilogorek

Copy link
Copy Markdown
Contributor Author

This will clash with sentry-cli releases files upload --header flag, so this change won't make it to v1.

@kamilogorek
kamilogorek deleted the headers-option branch March 17, 2022 11:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support multiple custom headers

1 participant