From 21f9ab2289c80d521d1123c7704a7cc9de2d7566 Mon Sep 17 00:00:00 2001 From: Ciprian Dorin Craciun Date: Mon, 12 Aug 2019 01:46:30 +0300 Subject: [PATCH] [server] Do not set the `Date` header ourselves (will be set by `fasthttp`) --- sources/cmd/server.go | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sources/cmd/server.go b/sources/cmd/server.go index b65b4ee..af1dc03 100644 --- a/sources/cmd/server.go +++ b/sources/cmd/server.go @@ -53,12 +53,6 @@ func (_server *server) Serve (_context *fasthttp.RequestCtx) () { _keyBuffer := [1024]byte {} _pathBuffer := [1024]byte {} - _timestampBuffer := [128]byte {} - - _timestamp := time.Now () - _timestampHttp := _timestamp.AppendFormat (_timestampBuffer[:0], http.TimeFormat) - - _responseHeaders.SetCanonical (StringToBytes ("Date"), _timestampHttp) _method := _requestHeaders.Method ()