Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[8.10](backport #36518) packetbeat/protos/http: don't panic when host is empty #36526

Merged
merged 1 commit into from
Sep 9, 2023

Commits on Sep 6, 2023

  1. packetbeat/protos/http: don't panic when host is empty (#36518)

    Previously, extractHostHeader would panic if the host part of header was
    empty. Avoid this by using standard library functions to do splits and
    clean up IPv6 addresses.
    
    Add tests to confirm old behaviour and test to cover panic case.
    
    (cherry picked from commit 3d0cdb0)
    efd6 authored and mergify[bot] committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    232b8bf View commit details
    Browse the repository at this point in the history