Skip to content

Malformed --header values are silently dropped #24

Description

@royalpinto007

Problem

--header "Authorization" (no colon) is silently dropped and the audit runs unauthenticated, likely producing misleading results.

Where

src/cli.ts (collectHeaders: indexOf(":") check drops the value).

Acceptance

Add a failing test first asserting a header without a colon throws or warns instead of returning {}. Then fix.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions