@@ -549,7 +549,7 @@ func (h *Handler) proxyLoopIteration(r *http.Request, origReq *http.Request, w h
549
549
// ding the health status of the upstream (an error can still
550
550
// occur after the roundtrip if, for example, a response handler
551
551
// after the roundtrip returns an error)
552
- if succ , ok := proxyErr .(roundtripSucceeded ); ok {
552
+ if succ , ok := proxyErr .(roundtripSucceededError ); ok {
553
553
return true , succ .error
554
554
}
555
555
@@ -953,10 +953,10 @@ func (h *Handler) reverseProxy(rw http.ResponseWriter, req *http.Request, origRe
953
953
res .Body .Close ()
954
954
}
955
955
956
- // wrap any route error in roundtripSucceeded so caller knows that
956
+ // wrap any route error in roundtripSucceededError so caller knows that
957
957
// the roundtrip was successful and to not retry
958
958
if routeErr != nil {
959
- return roundtripSucceeded {routeErr }
959
+ return roundtripSucceededError {routeErr }
960
960
}
961
961
962
962
// we're done handling the response, and we don't want to
@@ -1433,9 +1433,9 @@ type TLSTransport interface {
1433
1433
EnableTLS (base * TLSConfig ) error
1434
1434
}
1435
1435
1436
- // roundtripSucceeded is an error type that is returned if the
1436
+ // roundtripSucceededError is an error type that is returned if the
1437
1437
// roundtrip succeeded, but an error occurred after-the-fact.
1438
- type roundtripSucceeded struct { error }
1438
+ type roundtripSucceededError struct { error }
1439
1439
1440
1440
// bodyReadCloser is a reader that, upon closing, will return
1441
1441
// its buffer to the pool and close the underlying body reader.
0 commit comments