-
Notifications
You must be signed in to change notification settings - Fork 875
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
Introducing CanHaveTitleTag Function for MIME Type Validation #1608
Conversation
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0. - [Commits](golang/crypto@v0.14.0...v0.17.0) --- updated-dependencies: - dependency-name: golang.org/x/crypto dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
) Bumps [github.com/cloudflare/circl](https://github.com/cloudflare/circl) from 1.3.3 to 1.3.7. - [Release notes](https://github.com/cloudflare/circl/releases) - [Commits](cloudflare/circl@v1.3.3...v1.3.7) --- updated-dependencies: - dependency-name: github.com/cloudflare/circl dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
…1531) Bumps [github.com/quic-go/quic-go](https://github.com/quic-go/quic-go) from 0.37.4 to 0.37.7. - [Release notes](https://github.com/quic-go/quic-go/releases) - [Changelog](https://github.com/quic-go/quic-go/blob/master/Changelog.md) - [Commits](quic-go/quic-go@v0.37.4...v0.37.7) --- updated-dependencies: - dependency-name: github.com/quic-go/quic-go dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Hi! I noticed that some of the builds were failing with |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left some comments for you; thanks for the PR!
Once this is ready, I'll squash and open a new pull if you'd like, or we can keep it here. |
Thanks for the approval, would you like me to squash, or leave it? |
The latest commit shouldn't cause any issues, I updated the patch to match the code on the dev branch rather than the main branch. |
Hi, seeing as there are 11 commits for this, I feel like squashing might be wise, is that done during the merge process, or should I do it and re-open a pull? |
Hi, any update on this? |
Thanks! |
This pull request introduces a new function called
CanHaveTitleTag
. The purpose of this function is to validate whether a given MIME type supports the extraction of a<title>
tag from its content. The motivation behind this addition is to address issues where the extractor incorrectly assumes support for a<title>
tag, even when it's not applicable, such as inapplication/json
MIME types.Changes:
CanHaveTitleTag
intitle.go
to perform validation for MIME types supporting<title>
tag extraction.runner.go
to use the new functionNote
I'm not a frequent go developer, and this may be an ineffective way to achieve this goal, but from what I can tell, it gets the job done.