Browse Source
In ViewFile, the response body was only closed on 200 OK paths, which could leak connections on non-200 responses. Now the body is always closed via defer immediately after checking err == nil, before checking the status code.pull/7633/head
1 changed files with 14 additions and 9 deletions
Loading…
Reference in new issue