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

Commit b01174e

Browse files
committed
fix: 防止链接重用
1 parent a8d926e commit b01174e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/src/main/java/com/opensource/svgaplayer/SVGAParser.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ class SVGAParser(context: Context?) {
6363
(url.openConnection() as? HttpURLConnection)?.let {
6464
it.connectTimeout = 20 * 1000
6565
it.requestMethod = "GET"
66+
it.setRequestProperty("Connection", "close")
6667
it.connect()
6768
it.inputStream.use { inputStream ->
6869
ByteArrayOutputStream().use { outputStream ->

0 commit comments

Comments
 (0)