Skip to content

Fix non-spec compliant Last-Modified header in response#1934

Merged
hueniverse merged 1 commit into
hapijs:masterfrom
kanongil:http-date-compliance
Sep 11, 2014
Merged

Fix non-spec compliant Last-Modified header in response#1934
hueniverse merged 1 commit into
hapijs:masterfrom
kanongil:http-date-compliance

Conversation

@kanongil
Copy link
Copy Markdown
Contributor

I found that the date in the Last-Modified header of .file() responses are invalid according to http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.29 & http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.3.1.

This patch should fix this issue, generating valid dates, along with an extra test in case of future regressions.

@hueniverse
Copy link
Copy Markdown
Contributor

The up to date reference is: http://tools.ietf.org/html/rfc7231#section-7.1.1.1

@hueniverse hueniverse added the bug Bug or defect label Sep 11, 2014
@hueniverse hueniverse self-assigned this Sep 11, 2014
@hueniverse hueniverse added this to the 6.8.2 milestone Sep 11, 2014
hueniverse pushed a commit that referenced this pull request Sep 11, 2014
Fix non-spec compliant Last-Modified header in response
@hueniverse hueniverse merged commit c3990e6 into hapijs:master Sep 11, 2014
@lock
Copy link
Copy Markdown

lock Bot commented Jan 9, 2020

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.

@lock lock Bot locked as resolved and limited conversation to collaborators Jan 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Bug or defect

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants