-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
Milestone
Description
httpx version:
1.3.4
Current Behavior:
If a website (example.com) references a favicon stored on a different host (some-cdn.com), httpx fails to download it as it it makes the GET against some-cdn.com but includes host: example.com in the request headers.
Expected Behavior:
httpx downloads the favicon from the second host successfully - by not using the first host in the request headers.
Steps To Reproduce:
- Run
httpx -u https://spirit.com.au/ -faviconand observe the lack of favicon - Run the same command but with
-jsonand observe the correctfavicon_path - Start a web proxy (e.g. Burp) on 8080 and run
httpx -u https://spirit.com.au/ -favicon -http-proxy http://localhost:8080 - Observe that the Host header value is spirit.com.au when it should be assets-global.website-fil...
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
Status: CompletedNothing further to be done with this issue. Awaiting to be closed.Nothing further to be done with this issue. Awaiting to be closed.Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.Inconsistencies or issues which will cause an issue or problem for users or implementors.
