Skip to content

Should there be a way to block requests with multiple hosts or none are sent? #816

Open

Description

@Vizonex

I came across an issue on aiohttp that utilizes this library with Cython but it seems that multiple hosts or hosts being empty may not be an acceptable thing in the future and may be more of a bug/vulnerability. aio-libs/aiohttp#10600 I was wondering if maybe I should develop another lenient flag to this typescript/C library that can be enabled or disabled for blocking multiple hosts from being accepted or not or being empty without it?

Activity

  1. changed the title [-]Should there be a way to block multiple host headers from being accepted?[/-] [+]Should there be a way to block requests with multiple hosts or none are sent?[/+] on Apr 8, 2026
  2. ShogunPanda commented on Apr 28, 2026

    @ShogunPanda
    Contributor

    This is probably a good idea, I'll follow up on your PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions