Skip to content

Commit

Permalink
http_server: fixed version detection when initializing sessions
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Alminana <[email protected]>
  • Loading branch information
leonardo-albertovich committed Oct 30, 2024
1 parent 44db629 commit 259a7be
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/http_server/flb_http_server.c
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,8 @@ int flb_http_server_session_init(struct flb_http_server_session *session, int ve
return -3;
}
}
else if (session->version <= HTTP_PROTOCOL_VERSION_11) {
else if (session->version > HTTP_PROTOCOL_VERSION_AUTODETECT &&
session->version <= HTTP_PROTOCOL_VERSION_11) {
result = flb_http1_server_session_init(&session->http1, session);

if (result != 0) {
Expand Down

0 comments on commit 259a7be

Please sign in to comment.