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

Revert "fix(perf): refactor the content-type check from startsWith("text/html") to === "text/html"" #93

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

JakeChampion
Copy link
Contributor

Reverts #85

I forgot that the content-type can include an optional charset directive, E.G. text/html; charset=UTF-8

We need to revert this PR to as it broke the CSP plugin - I will do a separate PR which adds a bunch of integration tests so we don't regress again

Copy link

netlify bot commented Nov 5, 2024

Deploy Preview for csp-nonce ready!

Name Link
🔨 Latest commit 1e7e702
🔍 Latest deploy log https://app.netlify.com/sites/csp-nonce/deploys/672a2ca78959590008589f62
😎 Deploy Preview https://deploy-preview-93--csp-nonce.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@JakeChampion JakeChampion merged commit 00c43ca into main Nov 5, 2024
5 checks passed
@JakeChampion JakeChampion deleted the revert-85-jake/content-type-check branch November 5, 2024 14:34
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