mirror of
https://github.com/mmatczuk/go-http-tunnel.git
synced 2026-05-15 14:16:17 -06:00
report card fixes
This commit is contained in:
parent
fbbe155651
commit
c63ae8f383
3 changed files with 3 additions and 3 deletions
|
|
@ -80,7 +80,7 @@ func (p *HTTPProxy) Proxy(w io.Writer, r io.ReadCloser, msg *proto.ControlMessag
|
|||
|
||||
rw, ok := w.(http.ResponseWriter)
|
||||
if !ok {
|
||||
panic(fmt.Sprintf("Expected http.ResponseWriter got %t", w))
|
||||
panic(fmt.Sprintf("Expected http.ResponseWriter got %T", w))
|
||||
}
|
||||
|
||||
req, err := http.ReadRequest(bufio.NewReader(r))
|
||||
|
|
|
|||
|
|
@ -378,7 +378,7 @@ func (s *Server) proxyHTTP(host string, r *http.Request, msg *proto.ControlMessa
|
|||
|
||||
s.logger.Log(
|
||||
"level", 3,
|
||||
"action", "transfered",
|
||||
"action", "transferred",
|
||||
"bytes", cw.count,
|
||||
"dir", "user to client",
|
||||
"dst", r.Host,
|
||||
|
|
|
|||
2
utils.go
2
utils.go
|
|
@ -65,7 +65,7 @@ func transfer(dst io.Writer, src io.ReadCloser, logger log.Logger) {
|
|||
|
||||
logger.Log(
|
||||
"level", 3,
|
||||
"action", "transfered",
|
||||
"action", "transferred",
|
||||
"bytes", n,
|
||||
)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue