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: support Accept-Encoding token x-gzip as an alias for gzip #204

Merged
merged 1 commit into from
Dec 4, 2021

Conversation

darkgl0w
Copy link
Member

@darkgl0w darkgl0w commented Dec 4, 2021

Hello.

To ensure that this plugin is following the spec guidance, this PR aims to :

  • support Accept-Encoding token x-gzip as an alias for gzip (feat)
  • make sure that the Accept-Encoding token x-gzip is interpreted as an alias of gzip (test)

ref.: HTTP/1.1 RFC 7230 section 4.2.3 and IANA maintained Table of Content Encodings

Note: server-side we do not need to support this alias inside encodings, requestEncodings and forceRequestEncoding options (we should push good practices adoption) but client-side we should support it even though it's considered deprecated.

Checklist

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

Copy link
Member

@zekth zekth 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 780cfd7 into fastify:master Dec 4, 2021
@darkgl0w darkgl0w deleted the feat-x-gzip-alias branch December 4, 2021 22:56
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.

3 participants