Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add internalRewriteLocationHeader option #298

Merged
merged 3 commits into from
May 2, 2023

Conversation

efr00
Copy link
Contributor

@efr00 efr00 commented Apr 12, 2023

fixes: #296

Checklist

test/test.js Outdated Show resolved Hide resolved
README.md Outdated
@@ -163,6 +163,14 @@ configuration passed to the route.

Object with [reply options](https://github.com/fastify/fastify-reply-from#replyfromsource-opts) for `@fastify/reply-from`.

### `disableInternalRewriteLocationHeader`
Copy link
Member

Choose a reason for hiding this comment

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

Can you use a positive option instead (defaulted to true)? Something like internalRewriteLocationHeader.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, I will do it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's done

@efr00 efr00 requested a review from mcollina May 2, 2023 14:37
@mcollina mcollina changed the title feat: add disableInternalRewriteLocationHeader option feat: add internalRewriteLocationHeader option May 2, 2023
Copy link
Member

@mcollina mcollina left a comment

Choose a reason for hiding this comment

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

lgtm

@mcollina mcollina merged commit 156125d into fastify:master May 2, 2023
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.

location headers is rewritten without the possibility to disable this behavior
3 participants