Skip to content

Commit

Permalink
immediately close resp.Body
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol committed Oct 9, 2024
1 parent f8167ca commit 948c04d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion proxy/stream_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,6 @@ func Handler(w http.ResponseWriter, r *http.Request) {
cancel()
}

_, _ = io.Copy(io.Discard, resp.Body)
resp.Body.Close()
}
}
Expand Down

0 comments on commit 948c04d

Please sign in to comment.