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

Enh #204 #205

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

zmoddynamics
Copy link

@zmoddynamics zmoddynamics commented May 17, 2020

Adds 3 new header keys to $headerCollection.

  1. 'http-status-line': The full status line (ie. 'HTTP/1.1 200 OK')
  2. 'http-version': The http version returned from the server (ie. 'HTTP/1.1')
  3. 'http-status-code-reason-phrase': The status line without the HTTP version (ie. '200 OK')
Q A
Is bugfix? no
New feature? yes
Breaks BC? no
Tests pass? yes
Fixed issues #204

Adds 3 new header keys to $headerCollection.
1. 'http-status-line': The full status line (ie. 'HTTP/1.1 200 OK')
2. 'http-version': The http version returned from the server (ie. 'HTTP/1.1')
3.'http-status-code-reason-phrase': The status line without the HTTP version (ie. '200 OK')
@samdark samdark added this to the 2.0.13 milestone May 17, 2020
@@ -85,6 +85,9 @@ public function getHeaders()
if (strpos($rawHeader, 'HTTP/') === 0) {
$parts = explode(' ', $rawHeader, 3);
$headerCollection->add('http-code', $parts[1]);
$headerCollection->add('http-status-line',$rawHeader);
Copy link
Member

Choose a reason for hiding this comment

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

Formatting should be fixed here (spaces after ,).

@samdark samdark added the pr:request for unit tests Unit tests are needed. label May 17, 2020
@yii-bot
Copy link

yii-bot commented May 17, 2020

Thank you for putting effort in the improvement of the Yii framework.
We have reviewed your pull request.

In order for the framework and your solution to remain stable in the future, we have a unit test requirement in place. Therefore we can only accept your pull request if it is covered by unit tests.

Could you add these please?

Thanks!

P.S. If you have any questions about the creation of unit tests? Don't hesitate to ask for support. More information about unit tests

This is an automated comment, triggered by adding the label pr:request for unit tests.

@samdark samdark modified the milestones: 2.0.13, 2.0.14 Dec 23, 2020
@samdark samdark removed this from the 2.0.14 milestone Aug 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pr:request for unit tests Unit tests are needed.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants