build 8
This commit is contained in:
5
main.go
5
main.go
@@ -116,8 +116,9 @@ func proxy(w http.ResponseWriter, r *http.Request, client *http.Client, pathname
|
||||
for k, v := range res.Header {
|
||||
w.Header().Set(k, strings.Join(v, ","))
|
||||
}
|
||||
_ = res.Write(w)
|
||||
w.WriteHeader(res.StatusCode)
|
||||
if err := res.Write(w); err != nil {
|
||||
fmt.Println("Write Response Error: ", pathname, err)
|
||||
}
|
||||
fmt.Println("result: ", res.StatusCode)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user