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

getHeader case sensitive #245

Open
uacode opened this issue Jan 26, 2023 · 0 comments
Open

getHeader case sensitive #245

uacode opened this issue Jan 26, 2023 · 0 comments

Comments

@uacode
Copy link
Contributor

uacode commented Jan 26, 2023

Hello, @dacastro4 I received this email
....
Received: from 14092732981 named unknown by gmailapi.google.com with HTTPREST;
Tue, 24 Jan 2023 12:19:44 -0600
MIME-Version: 1.0
from: Octopus Moving Solutions info@octopuscrates.com
Date: Tue, 24 Jan 2023 12:19:44 -0600
To: user@domain.com
....

But parser in getFrom returns null. We can add $this->getHeader('from') in this method.

Or can modify searching in HasHeaders trait
if (ucfirst($header->key) === $headerName) {

What is correct? If you need I can push PR.

Thanks!

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