Use tagged versions for dependencies where possible
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
2
vendor/github.com/emicklei/go-restful/route.go
generated
vendored
2
vendor/github.com/emicklei/go-restful/route.go
generated
vendored
@@ -100,7 +100,7 @@ func (r Route) matchesContentType(mimeTypes string) bool {
|
||||
}
|
||||
|
||||
if len(mimeTypes) == 0 {
|
||||
// idempotent methods with (most-likely or garanteed) empty content match missing Content-Type
|
||||
// idempotent methods with (most-likely or guaranteed) empty content match missing Content-Type
|
||||
m := r.Method
|
||||
if m == "GET" || m == "HEAD" || m == "OPTIONS" || m == "DELETE" || m == "TRACE" {
|
||||
return true
|
||||
|
Reference in New Issue
Block a user