Skip to content

Commit

Permalink
Decrease chunk size for testing if content is binary
Browse files Browse the repository at this point in the history
  • Loading branch information
Stexxe committed Dec 26, 2024
1 parent f0c5779 commit 803718b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public val Logging: ClientPlugin<LoggingConfig> = createClientPlugin("Logging",
}

var isBinary = false
val firstChunk = ByteArray(4096)
val firstChunk = ByteArray(1024)
val firstReadSize = body.readAvailable(firstChunk)

if (firstReadSize < 1) {
Expand Down

0 comments on commit 803718b

Please sign in to comment.