mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
do not show IDN message for normal ascii hostnames
This commit is contained in:
parent
777ab21050
commit
c8663e52ee
@ -25,6 +25,7 @@ And also:
|
||||
* HTTP/2 Server Push
|
||||
* H2C Upgrade
|
||||
* Automatic follow redirects
|
||||
* International Domain Names
|
||||
|
||||
## How
|
||||
|
||||
|
@ -98,9 +98,7 @@ module HTTPX
|
||||
|
||||
if hostname.nil?
|
||||
hostname = connection.origin.host
|
||||
if hostname != connection.origin.non_ascii_hostname
|
||||
log { "resolver: resolve IDN #{connection.origin.non_ascii_hostname} as #{hostname}" }
|
||||
end
|
||||
log { "resolver: resolve IDN #{connection.origin.non_ascii_hostname} as #{hostname}" } if connection.origin.non_ascii_hostname
|
||||
end
|
||||
type = @_record_types[hostname].first
|
||||
log { "resolver: query #{type} for #{hostname}" }
|
||||
|
@ -240,9 +240,7 @@ module HTTPX
|
||||
|
||||
if hostname.nil?
|
||||
hostname = connection.origin.host
|
||||
if hostname != connection.origin.non_ascii_hostname
|
||||
log { "resolver: resolve IDN #{connection.origin.non_ascii_hostname} as #{hostname}" }
|
||||
end
|
||||
log { "resolver: resolve IDN #{connection.origin.non_ascii_hostname} as #{hostname}" } if connection.origin.non_ascii_hostname
|
||||
end
|
||||
@queries[hostname] = connection
|
||||
type = @_record_types[hostname].first
|
||||
|
Loading…
x
Reference in New Issue
Block a user