Skip to content

Modifying the request headers doesn't work #266

Description

@ARochniak

Description

Using next-intl@2.14.0-beta.3 version and following the example withExtraMiddleware the request headers aren't modified.

Mandatory reproduction URL (CodeSandbox or GitHub repository)

https://github.com/ARochniak/next-intl-middleware.git

Reproduction description

Steps to reproduce:

  1. Clone reproduction repo
  2. Run yarn && yarn dev
  3. Open https://localhost:3000 in the browser
  4. Restart the page
  5. You can see in the log message X-test header: null, but it should be X-test header: test

Expected behaviour

According to the example withExtraMiddleware, request headers should be modified correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions