Skip to content

Conversation

@buzz8year
Copy link

public function getRequestId()
{
    if (isset($this->headers['Request-Id'])) {
        return $this->headers['Request-Id'][0];
    }

    return null;
}
  • given method is not able to capture header by key 'Request-Id' (reproduction is questionable)
  • yet, using lowercased analogue 'request-id' returns expected...
  • option:
public function getRequestId()
{
    if (isset($this->headers['Request-Id'])) {
        return $this->headers['Request-Id'][0];
    } else {
        if (isset($this->headers[strtolower('Request-Id')])) {
            return $this->headers[strtolower('Request-Id')][0];
        }
    }

    return null;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant