Skip to content

Allow removing default headers #826

@jakearchibald

Description

@jakearchibald

Description

I think this is a regression, as it was added in vercel/serve-handler#45, and there appears to be tests for it.

If I try to launch serve with the following config:

{
  "headers": [
    {
      "source": "**/*.*",
      "headers": [
        {
          "key": "Content-Disposition",
          "value": null
        }
      ]
    }
  ]
}

It fails with:

ERROR  The configuration you provided is invalid:
must be string
{"type":"string"}

Library version

14.2.4

Node version

v22.18.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions