-
Notifications
You must be signed in to change notification settings - Fork 4
Handle Bad Content-Type Headers RESTfully
#255
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
Open
thehabes
wants to merge
39
commits into
main
Choose a base branch
from
246-bad-content-type-headers
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
39 commits
Select commit
Hold shift + click to select a range
ce0edc3
First pass at handling bad Content-Type headers. Focus on a way to d…
thehabes 5b91d8d
Changes while reviewing
thehabes 2e014d7
Changes while reviewing
thehabes 1361b2e
Changes while reviewing
thehabes 1190481
Changes while reviewing
thehabes c02fe7f
Changes while reviewing
thehabes deeddc3
Changes while reviewing
thehabes eb08b27
Changes while reviewing
thehabes fe482d0
Changes while reviewing
thehabes 1a33fe1
Changes while reviewing
thehabes 0f5fa25
Changes while reviewing
thehabes d88723a
Changes while reviewing
thehabes bdbfdd5
Changes while reviewing
thehabes 7dcc4ff
Changes while reviewing and testing
thehabes 525b47b
Changes while reviewing and testing
thehabes 1c90464
Fix createExpressError
thehabes 2a7a67d
Fix createExpressError
thehabes cbb475b
Changes while testing and reviewing
thehabes ff149f9
Changes while testing and reviewing
thehabes 5337622
Changes while reviewing and testing
thehabes bfa3a28
Changes while reviewing and testing
thehabes f077138
Changes while reviewing and testing
thehabes 232307d
Changes while reviewing and testing
thehabes 2b7ea90
reject content-type headers that have multiple or duplicate types
thehabes 6a5dc5c
ah ok get those generic mongo error codes
thehabes cbef6a6
ah nebermind
thehabes a06037d
refactor how Content-Type headers are checked
thehabes 99522c4
refactor how Content-Type headers are checked
thehabes e8dff8d
refactor how Content-Type headers are checked
thehabes d194bbc
refactor how createExpressError is used
thehabes f9d4f41
changes while testing and reviewing
thehabes 555de09
It is about time we clean these old logs out. They are not useful be…
thehabes e1d8b90
Don't respond with the full token
thehabes 1a9c5b2
rename
thehabes 01d3359
Changes while testing and reviewing
thehabes 8d106d0
I like the way it errors this way better
thehabes 0e6101d
Update for tests
thehabes c283859
yikes bad not === check
thehabes f3cb69f
catch comma and semicolon smugglers
thehabes 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
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
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.
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.
Any reason not to just call out the functions we need here?