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

packetbeat/protos/http: don't panic when host is empty #36518

Merged
merged 1 commit into from
Sep 6, 2023

Commits on Sep 6, 2023

  1. packetbeat/protos/http: don't panic when host is empty

    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.
    efd6 committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    54cd5fe View commit details
    Browse the repository at this point in the history