diff --git a/router/router_server_backup.go b/router/router_server_backup.go index 57e7cb9..4c3d337 100644 --- a/router/router_server_backup.go +++ b/router/router_server_backup.go @@ -147,7 +147,6 @@ func postServerRestoreBackup(c *gin.Context) { middleware.CaptureAndAbort(c, err) return } - defer res.Body.Close() // Don't allow content types that we know are going to give us problems. if res.Header.Get("Content-Type") == "" || !strings.Contains("application/x-gzip application/gzip", res.Header.Get("Content-Type")) { _ = res.Body.Close()