Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getRequestId() method is not able to capture header #123

Open
buzz8year opened this issue Jun 5, 2019 · 0 comments
Open

getRequestId() method is not able to capture header #123

buzz8year opened this issue Jun 5, 2019 · 0 comments

Comments

@buzz8year
Copy link

buzz8year commented Jun 5, 2019

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...

  • propose:

public function getRequestId() {
        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

No branches or pull requests

1 participant