Skip to content

Commit 31bf0b1

Browse files
committed
Fix error messages.
1 parent aa67d23 commit 31bf0b1

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ func (proxyCtx *OurProxyCtx) DoRequest(req *http.Request, respW http.ResponseWri
249249
}()
250250

251251
if isWebSocketReq(req) {
252-
proxyCtx.Logger.Debugf("Handling WebSocket Handshake: %v", req.URL)
252+
proxyCtx.Logger.Debugf("handling WebSocket handshake: %v", req.URL)
253253
cm, err := proxyCtx.Tr.ConnectMethodForRequest(&httpx.TransportRequest{Request: req, Extra: nil})
254254
if err != nil {
255255
return nil, errors.Wrapf(err, "failed to create a ConnectMethod struct")
@@ -284,9 +284,9 @@ func (proxyCtx *OurProxyCtx) DoRequest(req *http.Request, respW http.ResponseWri
284284
obConn.Close()
285285
return nil, errors.Errorf("client sent data before handshake is complete")
286286
}
287-
proxyCtx.Logger.Debugf("Established bidi tunnel between %v and %v", obConn.RemoteAddr(), ibConn.RemoteAddr())
287+
proxyCtx.Logger.Debugf("established bidi tunnel between %v and %v", obConn.RemoteAddr(), ibConn.RemoteAddr())
288288
proxyCtx.Proxy.Ctx.bidiTunnel(obConn, ibConn)
289-
proxyCtx.Logger.Debugf("Discarded bidi tunnel between %v and %v", obConn.RemoteAddr(), ibConn.RemoteAddr())
289+
proxyCtx.Logger.Debugf("discarded bidi tunnel between %v and %v", obConn.RemoteAddr(), ibConn.RemoteAddr())
290290
return nil, nil
291291
} else {
292292
timer := (*time.Timer)(nil)

0 commit comments

Comments
 (0)