The .host property is occasionally missing from the JSON output. The issue is the same problem described in #1753, but the underlying cause may be different. Although I'm not aware of all the causes where the issue arises, it can be commonly recreated by specify hosts with a port.
Expected Behavior:
The .host property should always be returned to identify the IP address queried.
httpx version:
Working: v1.6.1 Broken: v1.6.2
Current Behavior:
The
.host
property is occasionally missing from the JSON output. The issue is the same problem described in #1753, but the underlying cause may be different. Although I'm not aware of all the causes where the issue arises, it can be commonly recreated by specify hosts with a port.Expected Behavior:
The
.host
property should always be returned to identify the IP address queried.Steps To Reproduce:
But if you specify the same domain twice, removing the port from one:
And mixed:
Here's a unfiltered output: