• Blake Mizerany's avatar
    server: close response body on error (#6986) · 03608cb4
    Blake Mizerany authored
    This change closes the response body when an error occurs in
    makeRequestWithRetry. Previously, the first, non-200 response body was
    not closed before reattempting the request. This change ensures that
    the response body is closed in all cases where an error occurs,
    preventing leaks of file descriptors.
    
    Fixes #6974
    03608cb4
images.go 27.6 KB