Skip to content

Commit d370c48

Browse files
committed
Don't prematurely close the reponse body handle for Download()
1 parent 7fd7267 commit d370c48

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dbhub.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -158,9 +158,6 @@ func (c Connection) Download(dbOwner, dbName string, ident Identifier) (db io.Re
158158
// Fetch the database file
159159
queryUrl := c.Server + "/v1/download"
160160
db, err = sendRequest(queryUrl, data)
161-
if db != nil {
162-
defer db.Close()
163-
}
164161
if err != nil {
165162
return
166163
}

0 commit comments

Comments
 (0)