[server] Do not set the Date
header ourselves (will be set by fasthttp
)
This commit is contained in:
parent
55f27a783e
commit
21f9ab2289
1 changed files with 0 additions and 6 deletions
|
@ -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 ()
|
||||
|
||||
|
|
Loading…
Reference in a new issue