Skip to content

Commit

Permalink
http_client: added missing exit path
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich authored and edsiper committed Nov 19, 2024
1 parent eefac86 commit b8110f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/flb_http_client_http1.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,6 +528,9 @@ static int compose_request_line(cfl_sds_t *output_buffer,
else if (request->protocol_version == HTTP_PROTOCOL_VERSION_09) {
protocol_version_string = "";
}
else {
return -1;
}

method_name = flb_http_get_method_string_from_id(request->method);

Expand Down

0 comments on commit b8110f9

Please sign in to comment.