Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Adding host details in proxy headers#6866

Open
HarikrishnanTechie wants to merge1 commit intopsf:main
base:main
Choose a base branch
Loading
fromHarikrishnanTechie:main

Conversation

HarikrishnanTechie
Copy link

@HarikrishnanTechieHarikrishnanTechie commentedJan 3, 2025
edited
Loading

Issue:
The connect request does not include host details when operating in a proxy environment. This can lead to failures in establishing a proper connection, as the host information is essential for routing the request through the proxy.

Code Explanation:
To address this issue, the following approach is used:

Check for Host in Proxy Settings:
If the proxy_kwargs dictionary contains a host key, it indicates that host details are available.

Add Host to Proxy Headers:
These host details are added to the proxy_headers dictionary under the Host key. By doing so, the host information is explicitly included in the proxy headers, ensuring that the connect request incorporates the correct routing details.

Impact:
Including the host details in the proxy_headers ensures that the connect request is properly formed and able to route through the proxy environment without any missing information. This resolves the issue and enhances connectivity reliability

@sigmavirus24
Copy link
Contributor

We should resolveurllib3/urllib3#3532 first. Both of these PRs lack tests and the correct way to handle the header in question

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@HarikrishnanTechie@sigmavirus24@harikrishnan925

[8]ページ先頭

©2009-2025 Movatter.jp