Skip to content

Commit 7444d3a

Browse files
committed
proxy/grpcproxy: add return on error for metrics handler
Signed-off-by: Sam Batschelet <[email protected]>
1 parent 23c2380 commit 7444d3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: proxy/grpcproxy/metrics.go

+1
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ func HandleMetrics(mux *http.ServeMux, c *http.Client, eps []string) {
8989
resp, err := c.Get(target)
9090
if err != nil {
9191
http.Error(w, "Internal server error", http.StatusInternalServerError)
92+
return
9293
}
9394
defer resp.Body.Close()
9495
w.Header().Set("Content-Type", "text/plain; version=0.0.4")

0 commit comments

Comments
 (0)