Skip to content

Commit

Permalink
http_client: do not wait for more data on HTTP 204 response status (#554
Browse files Browse the repository at this point in the history
)

Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 1, 2018
1 parent d6c70d3 commit 55e9346
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flb_http_client.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,9 @@ static int process_data(struct flb_http_client *c)
return FLB_HTTP_OK;
}
}
else {
return FLB_HTTP_OK;
}
}
else if (c->resp.headers_end && c->resp.content_length <= 0) {
return FLB_HTTP_OK;
Expand Down

0 comments on commit 55e9346

Please sign in to comment.