Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Make Content-Type matching case-insensitive #11

Open
NanoSector opened this issue Mar 30, 2019 · 0 comments
Open

Make Content-Type matching case-insensitive #11

NanoSector opened this issue Mar 30, 2019 · 0 comments

Comments

@NanoSector
Copy link
Member

$contentType = $response->getHeaders()['Content-Type'] ?? '';

Some sites send a header back with different casing, so perhaps also match content-type or Content-type instead of just Content-Type.

@NanoSector NanoSector changed the title Make Content-Type matchin case-insensitive Make Content-Type matching case-insensitive Mar 30, 2019
NanoSector added a commit that referenced this issue Mar 30, 2019
Match against different types of casing for the content type header in order to match more webpages. Fixes #11 .
@NanoSector NanoSector mentioned this issue Mar 30, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant