mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-23 16:41:30 +00:00
parent
0602293989
commit
7dbd021fec
|
@ -138,7 +138,7 @@ func (p *Proxy) handle(w http.ResponseWriter, r *http.Request) error {
|
||||||
return fmt.Errorf("error forwarding request: %s", err)
|
return fmt.Errorf("error forwarding request: %s", err)
|
||||||
}
|
}
|
||||||
defer resp.Body.Close()
|
defer resp.Body.Close()
|
||||||
user_agent = r.Header().Get("User-Agent")
|
user_agent := r.Header.Get("User-Agent")
|
||||||
w.Header().Set("User-Agent", user_agent)
|
w.Header().Set("User-Agent", user_agent)
|
||||||
rw := newResponseWriter(w)
|
rw := newResponseWriter(w)
|
||||||
rr := newResponseReader(resp)
|
rr := newResponseReader(resp)
|
||||||
|
|
Loading…
Reference in a new issue