Skip to content

Commit d7b6419

Browse files
authored
Merge pull request #2256 from casionone/release-1.1.0-fix
Fix NPE of client downloadAction
2 parents fe5e664 + 40f58d6 commit d7b6419

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

linkis-commons/linkis-httpclient/src/main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ abstract class AbstractHttpClient(clientConfig: ClientConfig, clientName: String
312312
case "deflate" => new DeflateDecompressingEntity(entity).getContent
313313
case str => throw new HttpClientResultException(s"request failed! Reason: not support decompress type $str.")
314314
} else entity.getContent
315-
download.write(inputStream)
315+
download.write(inputStream, response)
316316
Result()
317317
case heartbeat: HeartbeatAction =>
318318
discovery.map {

0 commit comments

Comments
 (0)