Skip to content

Commit

Permalink
Merge pull request stardogventures#3 from charthop/LEAKED-CLIENT-CONN…
Browse files Browse the repository at this point in the history
…ECTION

updating api client after leaked connection fix
  • Loading branch information
Rodlikespants authored Aug 19, 2021
2 parents 70de476 + c12d1b6 commit 3ae321f
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,8 @@ open class ApiClient(val baseUrl: String, val baseHeaders: Map<String, String> =
if(T::class.java == java.io.File::class.java){
return downloadFileFromResponse(response) as T
} else if(T::class == kotlin.Unit::class) {
return kotlin.Unit as T
} else if(T::class == Unit::class) {
return response.body()?.close() as T
}
var contentType = response.headers().get("Content-Type")
Expand Down

0 comments on commit 3ae321f

Please sign in to comment.