[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.
We are using the Zend Feed Reader, which uses Zend HTTP under the hood.
This morning we upgraded from 2.10.0 to 2.10.1 and found that we began getting 500 errors with the following trace:
It would appear that in ContentSecurityPolicy.php we are try to destructure index 1 from the directive name and value, however the above example has no value.
Code to reproduce the issue
This is highly dependant on the feed host supplying the above CSP header. But we are doing this:
...
use Zend\Feed\Reader\Reader;
...
Reader::import($uri);
Where $uri is the host that returns the aforementioned header.
Expected results
I would expect the request to still be successful and for the headers to be parsed correctly.
Provide a narrative description of what you are trying to accomplish.
We are using the Zend Feed Reader, which uses Zend HTTP under the hood. This morning we upgraded from 2.10.0 to 2.10.1 and found that we began getting 500 errors with the following trace:
Looking at the response we received back from the API we called, the
Content-Security-Policy
header is set to:Content-Security-Policy: upgrade-insecure-requests
.It would appear that in
ContentSecurityPolicy.php
we are try to destructure index 1 from the directive name and value, however the above example has no value.Code to reproduce the issue
This is highly dependant on the feed host supplying the above CSP header. But we are doing this:
Where
$uri
is the host that returns the aforementioned header.Expected results
I would expect the request to still be successful and for the headers to be parsed correctly.
Actual results
We got a 500 error with the following trace:
These were all the headers in the response:
Our temporary solution has been to lock
zend-http
at version2.10.0
.