From fb86c712d13b32aaae49ab785f64e635023f5a0a Mon Sep 17 00:00:00 2001 From: becivells <732903873@qq.com> Date: Sun, 17 Oct 2021 01:12:11 +0800 Subject: [PATCH] remove golbin tag --- internal/reverse/response.go | 2 +- internal/reverse/reverse.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/reverse/response.go b/internal/reverse/response.go index 26ce516..256ef82 100644 --- a/internal/reverse/response.go +++ b/internal/reverse/response.go @@ -35,7 +35,7 @@ func (reverse *Reverse) ModifyResponse(shost string) func(response *http.Respons } } - response.Header.Add("GoblinServer", Version) + //response.Header.Add("GoblinServer", Version) err := reverse.modifyLocationHeader(shost, response) if err != nil { log.Info(err.Error()) diff --git a/internal/reverse/reverse.go b/internal/reverse/reverse.go index c93c5e7..07e7b87 100644 --- a/internal/reverse/reverse.go +++ b/internal/reverse/reverse.go @@ -130,6 +130,6 @@ func (reverse *Reverse) ServeHTTP(w http.ResponseWriter, r *http.Request) { proxy.ServeHTTP(w, r) return } - w.Header().Set("GoblinServer", Version) + //w.Header().Set("GoblinServer", Version) w.Write([]byte("403: Host forbidden")) }