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

Improve Content-Type check #4

Merged
merged 1 commit into from
Apr 1, 2024

Conversation

m-s-1-3
Copy link
Contributor

@m-s-1-3 m-s-1-3 commented Mar 3, 2024

The changes in this PR include two things:

  • It is now possible to take content types like "text/html; charset=UTF-8" into account. Websites that have this type of content type were always left out of the previous content type check. That's why we now check whether the content type begins with "text/html".

  • Furthermore, the buffer.reset() was removed from the responseWriter because there was a problem with the HTML output. The first part of the HTML code was always missing.

…ity to handle content types like "text/html; charset=UTF-8"
@1cedsoda 1cedsoda merged commit e62694b into 1cedsoda:master Apr 1, 2024
7 checks passed
@1cedsoda
Copy link
Owner

1cedsoda commented Apr 1, 2024

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

Successfully merging this pull request may close these issues.

None yet

2 participants