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

Do not send empty If-None-Match in tarball request #2738

Merged
merged 1 commit into from
Aug 22, 2022

Conversation

dmitrivereshchagin
Copy link
Contributor

Absent entity tag list was not allowed before RFC 9110 published this June. However, it would be better not to send it. Cowlib, for example, treats it invalid, and Cowboy rejects such a request :)

I'm also not really sure if it's needed to conditionally request tarballs (GET /tarballs/PACKAGE-VERSION.tar). Seems like locally cached tarball can be used as long as its checksum is considered valid. Mix/Hex, for example, uses conditional requests only to fetch new package registry (GET /packages/PACKAGE).

Absent entity tag list was not allowed before RFC 9110 published this
June.  However, it would be better not to send it.  Cowlib, for example,
treats it invalid, and Cowboy rejects such a request :)
Copy link
Collaborator

@ferd ferd left a comment

Choose a reason for hiding this comment

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

Seems good. I've forgotten a lot about how that code works, but the clearer handling around empty binaries can't hurt much and Dialyzer agrees.

@ferd ferd merged commit c0c5a0e into erlang:main Aug 22, 2022
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.

None yet

2 participants