Skip to content

x-powered-by header should be removable from response #162

Closed

Description

@RomainFranceschini

Describe the bug

There is a mismatch between the serve helper function documentation and its actual behavior, which states

Pass [poweredByHeader] to set the default content for "X-Powered-By",
/// pass null to omit this header.

However when passed null, the header still defaults to "Relic" value.

To reproduce

  1. await serve(handler, InternetAddress.anyIPv4, 8080, poweredByHeader: null);
  2. fire a request
  3. x-powered-by header is set to "Relic" in response

Expected behavior

x-powered-by should not be set, or the documentation should be adjusted.

Library version

relic 0.5.0

Platform information

Dart SDK version: 3.9.2 (stable) (Wed Aug 27 03:49:40 2025 -0700) on "macos_arm64"

Additional context

No response

How experienced are you with this library?

Beginner - Just getting started with this library

Are you interested in working on a PR for this?

  • I want to work on this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions