This repository was archived by the owner on Jan 30, 2020. It is now read-only.
This repository was archived by the owner on Jan 30, 2020. It is now read-only.
empty header values in responses are breaking the application since version 2.10.1 #202
Closed
Description
- [ x ] I was not able to find an open or closed issue matching what I'm seeing.
- [ x ] This is not a question. (Questions should be asked on chat (Signup here) or our forums.)
Provide a narrative description of what you are trying to accomplish.
Code to reproduce the issue
since the update from version 2.10.0 to 2.10.1 (only this package changed) i receive this error Zend\Diactoros\Exception\InvalidArgumentException: Invalid header value type; must be a string or numeric; received NULL
when i'm using the geocoder module. i tracked it down to this request that is sent: https://geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer/find?text=Alexanderplatz%2C+Berlin&sourceCountry=DEU&maxLocations=1&f=json&outFields=*
in the response the header field for Server
is empty, see:
Expected results
should not fail on empty header values, like it was in version 2.10.0
Actual results
request are failing because of the response contains an empty header value