Procházet zdrojové kódy

retrieve the root cause of the error

Darien Raymond před 8 roky
rodič
revize
c4be61e854
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      proxy/http/server.go

+ 1 - 1
proxy/http/server.go

@@ -65,7 +65,7 @@ func parseHost(rawHost string, defaultPort net.Port) (net.Destination, error) {
 }
 
 func isTimeout(err error) bool {
-	nerr, ok := err.(net.Error)
+	nerr, ok := errors.Cause(err).(net.Error)
 	return ok && nerr.Timeout()
 }