-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
fix(server): respond with 404/405 appropriately #3087
Conversation
This adjusts the not found handler to not respond with a 404 on not found endpoints that are part of the /api or /.well-known folders, and respond with a 405 when the method isn't implemented.
ArtifactsThese changes are published for testing on Buildkite, DockerHub and GitHub Container Registry. Docker Container
|
Codecov Report
@@ Coverage Diff @@
## master #3087 +/- ##
==========================================
+ Coverage 63.08% 63.14% +0.06%
==========================================
Files 234 235 +1
Lines 12271 12291 +20
Branches 381 381
==========================================
+ Hits 7741 7761 +20
Misses 4010 4010
Partials 520 520
Flags with carried forward coverage won't be shown. Click here to find out more.
|
# Conflicts: # internal/handlers/types.go
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.
LGTM.
This adjusts the not found handler to not respond with a 404 on not found endpoints that are part of the /api or /.well-known folders, and respond with a 405 when the method isn't implemented.
Extracted from #3005