Skip to content

Response to a failed authentication should be 407 instead of 401 #532

@vsalavatov

Description

@vsalavatov

In my case, this confuses java http client. It then asks for credentials for the server instead of new credentials for the proxy. Hence, wrong proxy credentials are not invalidated and instead are reused, which in turn leads to all requests failing with 401 status.

https://stackoverflow.com/questions/5508822/http-response-to-invalid-proxy-authentication

If I'm not mistaken, this is the place that should be fixed:

indicate_http_error (connptr, 401, "Unauthorized",

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