|
@@ -12,11 +12,6 @@ import (
|
|
|
"golang.org/x/net/http2"
|
|
|
)
|
|
|
|
|
|
-const (
|
|
|
- megaByte = 1 << 20
|
|
|
- gigaByte = 1 << 30
|
|
|
-)
|
|
|
-
|
|
|
var (
|
|
|
readTimeout = 30 * time.Second
|
|
|
writeTimeout = 30 * time.Second
|
|
@@ -28,7 +23,7 @@ func newServe(addr string, router http.Handler) *http.Server {
|
|
|
Handler: router,
|
|
|
ReadTimeout: readTimeout,
|
|
|
WriteTimeout: writeTimeout,
|
|
|
- MaxHeaderBytes: megaByte,
|
|
|
+ MaxHeaderBytes: MB,
|
|
|
}
|
|
|
}
|
|
|
|