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

[probes.http] Include headers configured with header option in requests #418

Merged
merged 1 commit into from Jul 11, 2023

Conversation

nrhtr
Copy link
Contributor

@nrhtr nrhtr commented Jul 3, 2023

Hi,

I wanted to add HTTP headers to a probe configuration and I found the "header" option first, as well as a "headers" option which appeared to be the deprecated equivalent (if I'm understanding correctly).

Adding headers to the "header" option seemed to have no effect, it appears only "headers" is being checked. This should resolve that.

Hopefully this is correct. It seems to work for me :)

@manugarg
Copy link
Contributor

Thank for catching and fixing this, @nrhtr! Last change (#375) went through quite a few iterations and I missed that I had added the header option in config proto.

(Sorry for the delay in reviewing, I was on vacation.)

@manugarg manugarg merged commit e02536a into cloudprober:master Jul 11, 2023
10 checks passed
@manugarg manugarg added this to the v0.12.8 milestone Jul 11, 2023
@nrhtr nrhtr deleted the fix-headers-not-applied branch July 11, 2023 15:21
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.

None yet

2 participants