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

Removed outdated handling of length parameter to If-Modified-Since header. #8120

Merged
merged 1 commit into from Mar 22, 2022

Conversation

felixxm
Copy link
Contributor

@felixxm felixxm commented Mar 15, 2022

The length parameter is not described in RFC-7232 and it's against HTTP/1.0 and HTTP/1.1 specifications. It was an old and unofficial extension set by some ancient versions of IE.

See also django/django#15500.

@squash-labs
Copy link

squash-labs bot commented Mar 15, 2022

Manage this branch in Squash

Test this branch here: https://felixxmwas-modified-since-size-d89xj.squash.io

@lb- lb- added status:Needs Review Compatibility For issues that explicitly relate to compatibility with dependencies and other packages labels Mar 16, 2022
@lb-
Copy link
Member

lb- commented Mar 16, 2022

@felixxm thanks so much for taking the time to contribute, I have flagged this as needs review.

Note for when this gets merged in, we should probably use the similar release note warning as in Django (but with our function name of course).

* The ``size`` argument of the undocumented
  ``django.views.static.was_modified_since()`` function is removed.

@felixxm
Copy link
Contributor Author

felixxm commented Mar 16, 2022

@lb- Thanks for checking 👍 I added a small release note.

@lb- lb- self-requested a review March 21, 2022 21:45
…ader

- The length parameter is not described in RFC-7232 and it's against HTTP/1.0 and HTTP/1.1 specifications.
- It was an old and unofficial extension set by some ancient versions of IE.
- See https://httpwg.org/specs/rfc7232.html#header.if-modified-since
- django/django#15500
Copy link
Member

@lb- lb- left a comment

Choose a reason for hiding this comment

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

@felixxm thanks for this and thanks for making your first contribution to Wagtail, great to see you over in this neck of the woods :D

I have rebased/added release notes and pushed to your remote branch, will merge in shortly.

I have added you to the contributors list as Mariusz Felisiak, please let me know if you wanted your name listed differently.

@lb- lb- merged commit 7b4cf43 into wagtail:main Mar 22, 2022
@felixxm
Copy link
Contributor Author

felixxm commented Mar 23, 2022

@lb- Thanks 👍

@felixxm felixxm deleted the was_modified_since_size branch March 23, 2022 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Compatibility For issues that explicitly relate to compatibility with dependencies and other packages
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants