Skip to content

nil panic in Do() when using --unsafe with HEAD requests #2458

Closed

Description

@Mzack9999

Do() in common/httpx/httpx.go calls err.Error() without a nil check in the unsafe HEAD request path. When getResponse returns a non-nil response with a nil error, this panics.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions