Skip to content
This repository has been archived by the owner on Jan 30, 2020. It is now read-only.

Allow the usage of "Expires: 0" header #107

Merged
merged 2 commits into from
Jan 25, 2017

Conversation

ezimuel
Copy link
Contributor

@ezimuel ezimuel commented Jan 25, 2017

This PR fixes #103, allowing Expires: 0 header. I used the timestamp 0 that is equivalent to "Thu, 01 Jan 1970 00:00:00 GMT".


public function setDate($date)
{
if ($date === '0') {
Copy link
Member

Choose a reason for hiding this comment

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

Should this also allow an integer 0 value?

Copy link
Contributor Author

@ezimuel ezimuel Jan 25, 2017

Choose a reason for hiding this comment

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

I think this is reasonable. Just updated the PR.

Copy link
Member

@weierophinney weierophinney left a comment

Choose a reason for hiding this comment

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

Looks reasonable; just wondering if we should also allow an integer value.

@weierophinney weierophinney self-assigned this Jan 25, 2017
@weierophinney weierophinney merged commit aa4ee94 into zendframework:master Jan 25, 2017
weierophinney added a commit that referenced this pull request Jan 25, 2017
Allow the usage of "Expires: 0" header
weierophinney added a commit that referenced this pull request Jan 25, 2017
weierophinney added a commit that referenced this pull request Jan 25, 2017
weierophinney added a commit that referenced this pull request Jan 25, 2017
Forward port #107

Conflicts:
	CHANGELOG.md
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AbstractDate::fromString('Expires: 0') fails
2 participants