Skip to content

Added mandatory Date: header to built-in webserver - bug #71276 #1733

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

Closed
wants to merge 1 commit into from

Conversation

seeschloss
Copy link
Contributor

As explained here: https://bugs.php.net/bug.php?id=71276

The Date: header is mandatory in a HTTP response.
This pull-requests adds it and fixes the various tests that were impacted as well.

Also, this doesn't touch the Host: header but this one should be removed in the future, as well.

@jerrygrey
Copy link

@seeschloss Just something minor, can it go above the Connection: close header?

@seeschloss
Copy link
Contributor Author

Yeah I agree with you, I prefer it too.

I also fixed two tests which I had missed somehow.

@@ -348,6 +349,13 @@ static void append_essential_headers(smart_str* buffer, php_cli_server_client *c
smart_str_appendl_ex(buffer, "\r\n", 2, persistent);
}
}
time_t t;
Copy link
Contributor

Choose a reason for hiding this comment

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

The declaration should got to the start of the block.

@weltling
Copy link
Contributor

weltling commented Jun 2, 2016

Merged with f33c7b3 and some correction.

Thanks.

@weltling weltling closed this Jun 2, 2016
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