fix: handle HTTP header names case-insensitively#1506
Merged
TwiN merged 2 commits intoTwiN:masterfrom Jan 25, 2026
Merged
Conversation
TwiN
requested changes
Jan 23, 2026
Owner
TwiN
left a comment
There was a problem hiding this comment.
Excellent work, just one small request!
Details: HTTP header names should be case-insensitive per RFC 7230. When the users configure the headers like 'user-agent' (lowercase), gatus was adding its own 'User-Agent' header because the case-sensitive map lookup failed to find the existing header. Fixed headers: - User-Agent - Content-Type - Host Fixes TwiN#1491"
ed0104c to
a4ed410
Compare
TwiN
approved these changes
Jan 25, 2026
TwiN
approved these changes
Jan 25, 2026
Owner
|
Thank you for the contribution! |
alexlebens
pushed a commit
to alexlebens/infrastructure
that referenced
this pull request
Feb 20, 2026
This PR contains the following updates: | Package | Update | Change | |---|---|---| | [TwiN/gatus](https://github.com/TwiN/gatus) | minor | `v5.34.0` → `v5.35.0` | | [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.34.0` → `v5.35.0` | --- ### Release Notes <details> <summary>TwiN/gatus (TwiN/gatus)</summary> ### [`v5.35.0`](https://github.com/TwiN/gatus/releases/tag/v5.35.0) [Compare Source](TwiN/gatus@v5.34.0...v5.35.0) #### What's Changed - feat(conditions,ui): Add `endpoints[].ui.resolve-successful-conditions` by [@​lorenzoppx](https://github.com/lorenzoppx) in [#​1486](TwiN/gatus#1486) - feat(ui): Add support for custom favicon by [@​mloskot](https://github.com/mloskot) in [#​1097](TwiN/gatus#1097) - fix(ui): Persist show average response time setting by [@​PythonGermany](https://github.com/PythonGermany) in [#​1438](TwiN/gatus#1438) - fix(ci): Adjust static asset generation workflow by [@​PythonGermany](https://github.com/PythonGermany) in [#​1480](TwiN/gatus#1480) - fix: handle HTTP header names case-insensitively by [@​AnuragEkkati](https://github.com/AnuragEkkati) in [#​1506](TwiN/gatus#1506) - refactor: Simplify and modernize loops by [@​PythonGermany](https://github.com/PythonGermany) in [#​1522](TwiN/gatus#1522) - docs: Fix typo in README concurrency section by [@​emrebasarannn](https://github.com/emrebasarannn) in [#​1520](TwiN/gatus#1520) - chore: Update to Go 1.25 by [@​TwiN](https://github.com/TwiN) in [#​1519](TwiN/gatus#1519) - chore(deps): bump github.com/aws/aws-sdk-go-v2 from 1.40.0 to 1.41.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1466](TwiN/gatus#1466) - chore(deps): bump golang.org/x/crypto from 0.45.0 to 0.46.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1488](TwiN/gatus#1488) - chore(deps): bump github.com/miekg/dns from 1.1.68 to 1.1.70 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1490](TwiN/gatus#1490) - chore(deps): bump github.com/aws/aws-sdk-go-v2/credentials from 1.19.2 to 1.19.7 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1498](TwiN/gatus#1498) - chore(deps): bump code.gitea.io/sdk/gitea from 0.22.1 to 0.23.2 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1525](TwiN/gatus#1525) - chore(deps): bump github.com/TwiN/whois from 1.2.0 to 1.3.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1538](TwiN/gatus#1538) - chore(deps): bump google.golang.org/api from 0.264.0 to 0.265.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1533](TwiN/gatus#1533) - chore(deps): bump github.com/prometheus-community/pro-bing from 0.7.0 to 0.8.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1544](TwiN/gatus#1544) - chore(deps): bump golang.org/x/oauth2 from 0.34.0 to 0.35.0 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​1543](TwiN/gatus#1543) #### New Contributors - [@​lorenzoppx](https://github.com/lorenzoppx) made their first contribution in [#​1486](TwiN/gatus#1486) - [@​AnuragEkkati](https://github.com/AnuragEkkati) made their first contribution in [#​1506](TwiN/gatus#1506) - [@​emrebasarannn](https://github.com/emrebasarannn) made their first contribution in [#​1520](TwiN/gatus#1520) **Full Changelog**: <TwiN/gatus@v5.34.0...v5.35.0> *** Have a great weekend! </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4yNS43IiwidXBkYXRlZEluVmVyIjoiNDMuMjUuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiaW1hZ2UiXX0=--> Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/4130 Co-authored-by: Renovate Bot <renovate-bot@alexlebens.net> Co-committed-by: Renovate Bot <renovate-bot@alexlebens.net>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Details: HTTP header names should be case-insensitive per RFC 7230. When the users configure the headers like 'user-agent' (lowercase), gatus was adding its own 'User-Agent' header because the case-sensitive map lookup failed to find the existing header.
Fixed headers:
Fixes #1491
Checklist
README.md, if applicable.