mirror of
https://github.com/minio/minio.git
synced 2025-01-23 12:43:16 -05:00
server/mux: Use constants provided by Go http (#4360)
This commit is contained in:
parent
542f7ae42c
commit
1886d94e95
@ -42,19 +42,22 @@ const (
|
||||
maxHTTPVerbLen = 7
|
||||
)
|
||||
|
||||
// HTTP2 PRI method.
|
||||
var httpMethodPRI = "PRI"
|
||||
|
||||
var defaultHTTP2Methods = []string{
|
||||
"PRI",
|
||||
httpMethodPRI,
|
||||
}
|
||||
|
||||
var defaultHTTP1Methods = []string{
|
||||
"OPTIONS",
|
||||
"GET",
|
||||
"HEAD",
|
||||
"POST",
|
||||
"PUT",
|
||||
"DELETE",
|
||||
"TRACE",
|
||||
"CONNECT",
|
||||
http.MethodOptions,
|
||||
http.MethodGet,
|
||||
http.MethodHead,
|
||||
http.MethodPost,
|
||||
http.MethodPut,
|
||||
http.MethodDelete,
|
||||
http.MethodTrace,
|
||||
http.MethodConnect,
|
||||
}
|
||||
|
||||
// ConnMux - Peeks into the incoming connection for relevant
|
||||
|
Loading…
x
Reference in New Issue
Block a user