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

fix headers no longer readonly #3295

Merged
merged 2 commits into from Sep 6, 2021

Conversation

jonnyynnoj
Copy link
Contributor

@jonnyynnoj jonnyynnoj commented Sep 5, 2021

Fixing types declaration for request.headers - its no longer a readonly property following #2817 which added the ability to set custom headers

Checklist

@github-actions github-actions bot added the typescript TypeScript related label Sep 5, 2021
Copy link
Member

@RafaelGSS RafaelGSS left a comment

Choose a reason for hiding this comment

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

Could you add a test to this change? Setting new headers

@jonnyynnoj
Copy link
Contributor Author

@RafaelGSS Thanks for reviewing, I've added a tsd test that fails if the property is readonly

Copy link
Member

@RafaelGSS RafaelGSS 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 c92c822 into fastify:main Sep 6, 2021
@jonnyynnoj jonnyynnoj deleted the fix-readonly-headers branch September 24, 2021 21:08
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 25, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
typescript TypeScript related
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants