Skip to content
This repository has been archived by the owner on Feb 6, 2023. It is now read-only.

Commit

Permalink
fix: 防止链接重用
Browse files Browse the repository at this point in the history
  • Loading branch information
painld6 committed Aug 18, 2021
1 parent a8d926e commit b01174e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ class SVGAParser(context: Context?) {
(url.openConnection() as? HttpURLConnection)?.let {
it.connectTimeout = 20 * 1000
it.requestMethod = "GET"
it.setRequestProperty("Connection", "close")
it.connect()
it.inputStream.use { inputStream ->
ByteArrayOutputStream().use { outputStream ->
Expand Down

0 comments on commit b01174e

Please sign in to comment.