-
Notifications
You must be signed in to change notification settings - Fork 8.3k
Fix Allow header according to RFC 7231 #2476
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2476 +/- ##
=======================================
Coverage 98.64% 98.64%
=======================================
Files 41 41
Lines 1989 1993 +4
=======================================
+ Hits 1962 1966 +4
Misses 15 15
Partials 12 12
Continue to review full report at Codecov.
|
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.
Looks good to me (with some suggested edits).
c.writermem.Header()["Allow"] = []string{strings.Join(allowed, ", ")} | ||
serveError(c, http.StatusMethodNotAllowed, default405Body) | ||
return | ||
} | ||
} | ||
c.handlers = engine.allNoRoute |
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'd like a blank line after 455 - a change of subject matter.
@antonjah conflicts |
I opened a new PR using @unbyte's commits but fixing conflicts, hoping this can get merged & released soon :) |
closed PR and move to #3759 |
close #2397