commit | 0d838d1d5c6cc78c1143f6632b16661e7f64c60d | [log] [tgz] |
---|---|---|
author | legendtkl <taokelu@gmail.com> | Thu Jun 09 17:10:10 2022 +0800 |
committer | GitHub <noreply@github.com> | Thu Jun 09 17:10:10 2022 +0800 |
tree | fc2af4df5f45cbf672a4c2263f788d1e834769c4 | |
parent | 25484ece4955d33a92d7116851d589ddb7b0158e [diff] | |
parent | 1b899a1daa7190f8c98fd490135c481cee1d9de9 [diff] |
Merge pull request #2256 from casionone/release-1.1.0-fix Fix NPE of client downloadAction
diff --git a/linkis-commons/linkis-httpclient/src/main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala b/linkis-commons/linkis-httpclient/src/main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala index a40fe4c..70eab6b 100644 --- a/linkis-commons/linkis-httpclient/src/main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala +++ b/linkis-commons/linkis-httpclient/src/main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala
@@ -312,7 +312,7 @@ case "deflate" => new DeflateDecompressingEntity(entity).getContent case str => throw new HttpClientResultException(s"request failed! Reason: not support decompress type $str.") } else entity.getContent - download.write(inputStream) + download.write(inputStream, response) Result() case heartbeat: HeartbeatAction => discovery.map {