Skip to content

fix(server): Unset default x-powered-by header when null is passed - #163

Merged
nielsenko merged 1 commit into
serverpod:mainfrom
RomainFranceschini:fix/unset-powered-by-header
Sep 10, 2025
Merged

nielsenko merged 1 commit into
serverpod:mainfrom
RomainFranceschini:fix/unset-powered-by-header

Conversation

@RomainFranceschini

Copy link
Copy Markdown
Contributor

Description

When poweredByHeader is passed with a null value, avoid setting the default "Relic" value.

Related Issues

Fixes #162

Pre-Launch Checklist

Please ensure that your PR meets the following requirements before submitting:

  • This update focuses on a single feature or bug fix. (For multiple fixes, please submit separate PRs.)
  • I have read and followed the Dart Style Guide and formatted the code using dart format.
  • I have referenced at least one issue this PR fixes or is related to.
  • I have updated/added relevant documentation (doc comments with ///), ensuring consistency with existing project documentation.
  • I have added new tests to verify the changes.
  • All existing and new tests pass successfully.
  • I have documented any breaking changes below.

Breaking Changes

  • Includes breaking changes.
  • No breaking changes.

@coderabbitai

coderabbitai Bot commented Sep 9, 2025

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@RomainFranceschini RomainFranceschini changed the title fix(server): unset default x-powered-by header when null is passed fix(server): Unset default x-powered-by header when null is passed Sep 9, 2025
@codecov

codecov Bot commented Sep 10, 2025 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.43%. Comparing base (5ac8e4e) to head (9368799).
⚠️ Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #163   +/-   ##
=======================================
  Coverage   92.43%   92.43%           
=======================================
  Files          83       83           
  Lines        3119     3119           
  Branches     1592     1592           
=======================================
  Hits         2883     2883           
  Misses        236      236           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@nielsenko

Copy link
Copy Markdown
Collaborator

@RomainFranceschini Thank you for taking an interest in Relic. Your PR looks good.

It does make me wonder why we even set x-powered-by at all. It will only make fingerprinting trivial.

@nielsenko nielsenko left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🚀

@nielsenko
nielsenko merged commit 0b8098b into serverpod:main Sep 10, 2025
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.

x-powered-by header should be removable from response

2 participants