Skip to content

Commit

Permalink
Fix HttpSource bug (apache#6824)
Browse files Browse the repository at this point in the history
  • Loading branch information
EricJoy2048 authored May 10, 2024
1 parent 868ba4d commit c3ab84c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ public void pollAndCollectData(Collector<SeaTunnelRow> output) throws Exception
this.httpParameter.getHeaders(),
this.httpParameter.getParams(),
this.httpParameter.getBody());
if (HttpResponse.STATUS_OK == response.getCode()) {
if (response.getCode() >= 200 && response.getCode() <= 207) {
String content = response.getContent();
if (!Strings.isNullOrEmpty(content)) {
if (this.httpParameter.isEnableMultilines()) {
Expand Down

0 comments on commit c3ab84c

Please sign in to comment.