实现基本的反向代理

This commit is contained in:
刘祥超
2020-09-27 15:26:06 +08:00
parent cb85a9bb01
commit fb587ac0de
13 changed files with 522 additions and 60 deletions

View File

@@ -118,6 +118,9 @@ func (this *HTTPWriter) AddHeaders(header http.Header) {
return
}
for key, value := range header {
if key == "Connection" {
continue
}
for _, v := range value {
this.writer.Header().Add(key, v)
}