Skip to content

Commit 0a5f950

Browse files
EricJoy2048chaorongzhi
authored andcommitted
Fix HttpSource bug (apache#6824)
1 parent ef22458 commit 0a5f950

File tree

1 file changed

+1
-1
lines changed
  • seatunnel-connectors-v2/connector-http/connector-http-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/http/source

1 file changed

+1
-1
lines changed

seatunnel-connectors-v2/connector-http/connector-http-base/src/main/java/org/apache/seatunnel/connectors/seatunnel/http/source/HttpSourceReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public void pollAndCollectData(Collector<SeaTunnelRow> output) throws Exception
116116
this.httpParameter.getHeaders(),
117117
this.httpParameter.getParams(),
118118
this.httpParameter.getBody());
119-
if (HttpResponse.STATUS_OK == response.getCode()) {
119+
if (response.getCode() >= 200 && response.getCode() <= 207) {
120120
String content = response.getContent();
121121
if (!Strings.isNullOrEmpty(content)) {
122122
if (this.httpParameter.isEnableMultilines()) {

0 commit comments

Comments
 (0)