Repository navigation
fix: answer an invalid OriginPatterns entry with 500 #596
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
Draft
mafredri
wants to merge
13
commits into
mafredri/accept-error-handler
from
mafredri/origin-patterns-check-all
Draft
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
8def42d
docs(accept.go): say how Accept reports an invalid OriginPatterns entry
mafredri 2bb1c0f
fix: check every OriginPatterns entry on each handshake
mafredri 91bc7bc
fix: answer an invalid OriginPatterns entry with 500
mafredri 6d698a9
docs(accept.go): leave InsecureSkipVerify out of the pattern rule
mafredri b180a89
docs(accept.go): stop saying the request host is always authorized
mafredri 0534ccc
test(accept_test.go): cover InsecureSkipVerify with an invalid pattern
mafredri 2c91743
docs(accept.go): drop "whatever its origin" from the pattern rule
mafredri 9bddde9
test(accept_test.go): name the InsecureSkipVerify test "invalid"
mafredri 8ee1f47
docs(accept.go): limit the invalid pattern rule to valid requests
mafredri 7b58d3b
refactor: match each OriginPatterns entry once
mafredri 0cad438
fix: try OriginPatterns entries in order again
mafredri 55bbd67
test(accept_test.go): cover an invalid pattern before a matching one
mafredri b9bd979
docs(accept.go): say Accept stops at the first matching pattern
mafredri File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.