Skip to content

Commit

Permalink
ja4 - fix http method for ja4h
Browse files Browse the repository at this point in the history
  • Loading branch information
astibal committed Nov 11, 2024
1 parent c727f18 commit 18fc16b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/inspect/engine/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,8 +539,13 @@ namespace sx::engine::http {
}
}
}
if(ja4h.has_value())
if(ja4h.has_value()) {
auto meth = my_app_data->http_data.method;
if(meth.size() >= 2)
ja4h->cmd = sx::ja4::util::to_lower(meth).substr(0,2);

my_app_data->http_data.ja4h = ja4h->ja4h();
}

detect_app(ctx, side, my_app_data, stream_id, flags, data);
if(ctx.origin->opt_kb_enabled) {
Expand Down

0 comments on commit 18fc16b

Please sign in to comment.