Skip to content

Icinga2Client#addJsonHeaders(): don't add Accept: application/json to GET#28

Open
Al2Klimov wants to merge 1 commit intomainfrom
Accept-Header
Open

Icinga2Client#addJsonHeaders(): don't add Accept: application/json to GET#28
Al2Klimov wants to merge 1 commit intomainfrom
Accept-Header

Conversation

@Al2Klimov
Copy link
Member

Icinga 2 doesn't demand this header for GET requests.

… GET

Icinga 2 doesn't demand this header for GET requests.
@cla-bot cla-bot bot added the cla/signed label Mar 11, 2024
@julianbrost
Copy link
Member

I don't see anything wrong with sending the header unconditionally, given that we expect a JSON response anyways. So why would we want to add a special case for this?

@Al2Klimov
Copy link
Member Author

Because Icinga does.

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.

2 participants