mirror of
https://git.phreedom.club/localhost_frssoft/compy.git
synced 2024-11-23 08:31:29 +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)
|
||||
}
|
||||
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)
|
||||
rw := newResponseWriter(w)
|
||||
rr := newResponseReader(resp)
|
||||
|
|
Loading…
Reference in a new issue