myFMbutler/myFMApiLibrary-for-PHP

Error while obtaining header information

Opened this issue · 2 comments

How to fix;

Response.php line 68:
old:
$this->headers = $headers;
new:
$this->headers = array_change_key_case($headers,CASE_LOWER);

and Response.php line 81,82:
old:

if (isset($this->headers[$header])) {
    return $this->headers[$header];
}

new:

if (isset($this->headers[strtolower($header)])) {
    return $this->headers[strtolower($header)];
}

Good catch -- this is due to http2 changes (requiring lowercase headers).

We solved this in our fork: rcconsulting@d4dca9e

Hi.

Thanks for the review but: I'm no longer a part of Lesterius anymore; my access is closed. I'm not able to accept/declined this and I don't think this will happen from someone else.

I did the same fix on my own fork : https://github.com/lguilbert/myFMApiLibrary-for-PHP

But you could do your own too.