-
Couldn't load subscription status.
- Fork 978
Open
Labels
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.
Description
httpx version:
latest (dev branch)
Current Behavior:
When using -rr (raw request) together with -target in unsafe mode, httpx overwrites the Host header from the raw request file with the target host. This causes the original Host header specified in the request file to be ignored.
Expected Behavior:
The Host header from the raw request file should be preserved, even when -target and -unsafe are used.
Steps To Reproduce:
- Create a raw request file
raw.txt:
GET / HTTP/1.1
Host: example.com- Run httpx with:
httpx -rr raw.txt -target test.com -unsafe -debug- Observe that the Host header is changed to
test.cominstead of staying asexample.com.
Metadata
Metadata
Assignees
Labels
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.