fix: add missing request connection close

This commit is contained in:
Derrick Hammer 2023-08-04 11:46:25 -04:00
parent 8d3f490c01
commit dff3ca4589
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 0 deletions

View File

@ -52,6 +52,7 @@ func Init() {
client.SetBaseURL("http://localhost:9980/api")
client.SetBasicAuth("", viper.GetString("renterd-api-password"))
client.SetDisableWarn(true)
client.SetCloseConnection(true)
}
func Upload(r io.ReadSeeker, size int64, hash []byte, accountID uint) (model.Upload, error) {