File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -178,14 +178,20 @@ static int http_post(struct flb_out_http *ctx,
178
178
}
179
179
else if ((ctx -> out_format == FLB_PACK_JSON_FORMAT_JSON ) ||
180
180
(ctx -> out_format == FLB_PACK_JSON_FORMAT_STREAM ) ||
181
- (ctx -> out_format == FLB_PACK_JSON_FORMAT_LINES ) ||
182
181
(ctx -> out_format == FLB_HTTP_OUT_GELF )) {
183
182
flb_http_add_header (c ,
184
183
FLB_HTTP_CONTENT_TYPE ,
185
184
sizeof (FLB_HTTP_CONTENT_TYPE ) - 1 ,
186
185
FLB_HTTP_MIME_JSON ,
187
186
sizeof (FLB_HTTP_MIME_JSON ) - 1 );
188
187
}
188
+ else if ((ctx -> out_format == FLB_PACK_JSON_FORMAT_LINES )) {
189
+ flb_http_add_header (c ,
190
+ FLB_HTTP_CONTENT_TYPE ,
191
+ sizeof (FLB_HTTP_CONTENT_TYPE ) - 1 ,
192
+ FLB_HTTP_MIME_NDJSON ,
193
+ sizeof (FLB_HTTP_MIME_NDJSON ) - 1 );
194
+ }
189
195
else if ((ctx -> out_format == FLB_HTTP_OUT_MSGPACK )) {
190
196
flb_http_add_header (c ,
191
197
FLB_HTTP_CONTENT_TYPE ,
Original file line number Diff line number Diff line change 26
26
#define FLB_HTTP_CONTENT_TYPE "Content-Type"
27
27
#define FLB_HTTP_MIME_MSGPACK "application/msgpack"
28
28
#define FLB_HTTP_MIME_JSON "application/json"
29
+ #define FLB_HTTP_MIME_NDJSON "application/x-ndjson"
29
30
30
31
#ifdef FLB_HAVE_SIGNV4
31
32
#ifdef FLB_HAVE_AWS
You can’t perform that action at this time.
0 commit comments