Skip to content

Commit 9020597

Browse files
nokute78edsiper
authored andcommitted
in_http: allow multiple json payloads(fluent#5810)
Signed-off-by: Takahiro Yamashita <[email protected]>
1 parent 17ac7e9 commit 9020597

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugins/in_http/http_prot.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -194,9 +194,6 @@ int process_pack(struct flb_http *ctx, flb_sds_t tag, char *buf, size_t size)
194194
flb_input_chunk_append_raw(ctx->ins, NULL, 0, mp_sbuf.data, mp_sbuf.size);
195195
}
196196
msgpack_sbuffer_destroy(&mp_sbuf);
197-
198-
break;
199-
200197
}
201198
else if (result.data.type == MSGPACK_OBJECT_ARRAY) {
202199
obj = &result.data;
@@ -454,4 +451,4 @@ int http_prot_handle_error(struct flb_http *ctx, struct http_conn *conn,
454451
{
455452
send_response(conn, 400, "error: invalid request\n");
456453
return -1;
457-
}
454+
}

0 commit comments

Comments
 (0)