Skip to content

Commit

Permalink
- rm http "Server" header for performance
Browse files Browse the repository at this point in the history
  • Loading branch information
lesismal committed Jul 30, 2021
1 parent c358bc2 commit a432a29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbhttp/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ func NewResponse(parser *Parser, request *http.Request, enableSendfile bool) *Re
res := responsePool.Get().(*Response)
res.parser = parser
res.request = request
res.header = http.Header{"Server": []string{"nbio"}}
res.header = http.Header{ /*"Server": []string{"nbio"}*/ }
res.enableSendfile = enableSendfile
return res
}

0 comments on commit a432a29

Please sign in to comment.