Skip to content

Commit

Permalink
out_stackdriver: fix gce metadata header length (CID 185754)
Browse files Browse the repository at this point in the history
Signed-off-by: Eduardo Silva <[email protected]>
  • Loading branch information
edsiper committed Apr 8, 2019
1 parent 8d25e2b commit 081843c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/out_stackdriver/gce_metadata.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ static int fetch_metadata(struct flb_upstream *ctx, char *uri,
flb_http_buffer_size(c, 4096);

flb_http_add_header(c, "User-Agent", 10, "Fluent-Bit", 10);
flb_http_add_header(c, "Content-Type", 12, "application/text", 20);
flb_http_add_header(c, "Content-Type", 12, "application/text", 16);
flb_http_add_header(c, "Metadata-Flavor", 15, "Google", 6);

/* Send HTTP request */
Expand Down

0 comments on commit 081843c

Please sign in to comment.