This repository has been archived by the owner on Jan 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
[Zend\Http\Client] dupplicate header keys in prepareHeaders #5065
Closed
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Please add a unit test as well to document the why of the change. Thanks in advance! |
what kind of document you meen, I think you mean inline doc right? |
@ClemensSahs I meant that the test will document why the change is being made, not that you need to write documentation. :) |
@weierophinney ok the test control tow possible way for the same error case... currently I have no alternative error case for this isseus... from my side we are fine, any feedback? |
weierophinney
added a commit
that referenced
this pull request
Sep 4, 2013
[Zend\Http\Client] dupplicate header keys in prepareHeaders Conflicts: tests/ZendTest/Http/ClientTest.php
weierophinney
added a commit
that referenced
this pull request
Sep 4, 2013
ghost
assigned weierophinney
Sep 4, 2013
gianarb
pushed a commit
to zendframework/zend-http
that referenced
this pull request
May 15, 2015
weierophinney
added a commit
to zendframework/zend-http
that referenced
this pull request
May 15, 2015
…hotfix/5042 [Zend\Http\Client] dupplicate header keys in prepareHeaders Conflicts: tests/ZendTest/Http/ClientTest.php
weierophinney
added a commit
to zendframework/zend-http
that referenced
this pull request
May 15, 2015
weierophinney
added a commit
to zendframework/zend-http
that referenced
this pull request
May 15, 2015
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
in my mind I found a bug in the Http Component. In my gist I write a TestCase to show the error.
if we you a toString-Methode from
\Zend\Http\Header\ContentType
https://gist.github.com/ClemensSahs/6421612
The provenance from this issues is in the method
\Zend\Http\Client::prepareHeaders
here we use not the lowercase string for the header keys like the\Zend\Http\Header\*
So we get this.best regards