Skip to content

non basic Proxy Authorization requests blocked by http_proxy raising error  #913

@pettzilla1

Description

@pettzilla1

if connect_response.status < 200 or connect_response.status > 299:

The line filtering out status codes above 299 is overly restrictive as it filters out 407 and 401 requests which are requests for additional information for authorization,
I have tested a fix for this myself by adding to the line prior

if connect_response.status in(407,401): return( connect_response)
this will allow the request for proxy authorization to be returned and followed up upon appropriately by the user.

I'm happy to write a pull request to action this update if there is capacity to review

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