[server] Do not set the Date header ourselves (will be set by fasthttp)

This commit is contained in:
Ciprian Dorin Craciun 2019-08-12 01:46:30 +03:00
parent 55f27a783e
commit 21f9ab2289

View file

@ -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 ()