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

Add fallback resolve for when </head> is missing #2

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

osilviotti
Copy link
Contributor

Addresses #1

The problem was that Twitter returns a malformed HTML document that contains no head tags or closing body tag - here's the validator output for the URL from the issue. This meant the resolve was never called with the head of the document as it's inside a conditional.

I went for the simplest option and just resolved the entire returned HTML document as a fallback.

@luisivan
Copy link
Owner

Thanks, makes sense!

@luisivan luisivan merged commit b2e9b2c into luisivan:master Jun 14, 2022
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.

2 participants