You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@linkis.apache.org by le...@apache.org on 2022/06/09 09:10:14 UTC
[incubator-linkis] branch release-1.1.0 updated: fix NPE of download bml
This is an automated email from the ASF dual-hosted git repository.
legendtkl pushed a commit to branch release-1.1.0
in repository https://gitbox.apache.org/repos/asf/incubator-linkis.git
The following commit(s) were added to refs/heads/release-1.1.0 by this push:
new 1b899a1da fix NPE of download bml
new 0d838d1d5 Merge pull request #2256 from casionone/release-1.1.0-fix
1b899a1da is described below
commit 1b899a1daa7190f8c98fd490135c481cee1d9de9
Author: casionone <ca...@gmail.com>
AuthorDate: Thu Jun 9 16:35:09 2022 +0800
fix NPE of download bml
---
.../main/scala/org/apache/linkis/httpclient/AbstractHttpClient.scala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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 a40fe4c27..70eab6b78 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 @@ abstract class AbstractHttpClient(clientConfig: ClientConfig, clientName: String
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 {
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@linkis.apache.org
For additional commands, e-mail: commits-help@linkis.apache.org