From f1937e52bc6accb4da5a0afea9ceaa3e50918deb Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Mon, 12 Aug 2019 20:43:30 +0300 Subject: [PATCH] [server] Use the `NoDefaultDate` option --- sources/cmd/server-dummy.go | 7 ++++--- sources/cmd/server.go | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/cmd/server-dummy.go b/sources/cmd/server-dummy.go index 50f464b..7308eb5 100644 --- a/sources/cmd/server-dummy.go +++ b/sources/cmd/server-dummy.go @@ -33,6 +33,7 @@ func main () () { NoDefaultServerHeader : true, NoDefaultContentType : true, + NoDefaultDate : true, DisableHeaderNamesNormalizing : true, Concurrency : 4 * 1024 + 128, @@ -42,9 +43,9 @@ func main () () { WriteBufferSize : 16 * 1024, MaxRequestBodySize : 16 * 1024, - // ReadTimeout : 30 * time.Second, - // WriteTimeout : 30 * time.Second, - // IdleTimeout : 360 * time.Second, + // ReadTimeout : 30 * time.Second, + // WriteTimeout : 30 * time.Second, + // IdleTimeout : 360 * time.Second, TCPKeepalive : true, TCPKeepalivePeriod : 60 * time.Second, diff --git a/sources/cmd/server.go b/sources/cmd/server.go index 1c2a7a6..125bd22 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -1000,6 +1000,7 @@ func main_0 () (error) { NoDefaultServerHeader : true, NoDefaultContentType : true, + NoDefaultDate : true, DisableHeaderNamesNormalizing : true, Concurrency : 4 * 1024 + 128,