mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-21 16:01:22 +02:00
security: drop service headers
This commit is contained in:
@@ -82,6 +82,11 @@ func RemoveHop(h http.Header) {
|
||||
}
|
||||
}
|
||||
|
||||
func RemoveServiceHeaders(h http.Header) {
|
||||
h.Del("X-Powered-By")
|
||||
h.Del("Server")
|
||||
}
|
||||
|
||||
func CopyHeader(dst, src http.Header) {
|
||||
for k, vv := range src {
|
||||
for _, v := range vv {
|
||||
|
||||
Reference in New Issue
Block a user