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 New Issue
Block a user