This repository was archived by the owner on Apr 1, 2023. It is now read-only.
Commit cdafd57
committed
minor #136 use HeaderCollection::toArray to fix lowercased header names (jdohuutin)
This PR was squashed before being merged into the 1.0-dev branch (closes #136).
Discussion
----------
use HeaderCollection::toArray to fix lowercased header names
When creating a Response in Goutte client from a GuzzleResponse, headers names are lowercased.
(location, content-type instead of Location, Content-type).
(see https://github.com/guzzle/guzzle/blob/master/src/Guzzle/Http/Message/Header/HeaderCollection.php#L44)
Rather than use `getAll` method of `HeaderCollection`, we better use [`toArray`](https://github.com/guzzle/guzzle/blob/master/src/Guzzle/Http/Message/Header/HeaderCollection.php#L99).
Commits
-------
cee172e use HeaderCollection::toArray to fix lowercased header names1 file changed
+1
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
20 | | - | |
21 | 20 | | |
22 | 21 | | |
23 | 22 | | |
| |||
181 | 180 | | |
182 | 181 | | |
183 | 182 | | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
| 183 | + | |
192 | 184 | | |
193 | 185 | | |
194 | 186 | | |
| |||
0 commit comments