mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-08-10 00:01:27 -04:00
for unescaping of non ascii domain to binary (JRuby converts to UTF-8)
This commit is contained in:
parent
8f495f37d2
commit
b47b9de745
@ -32,6 +32,8 @@ module HTTPX
|
||||
|
||||
non_ascii_hostname = URIParser.unescape(uri.host)
|
||||
|
||||
non_ascii_hostname.force_encoding(Encoding::UTF8) if RUBY_ENGINE == "jruby"
|
||||
|
||||
idna_hostname = DomainName.new(non_ascii_hostname).hostname
|
||||
|
||||
uri.host = idna_hostname
|
||||
|
Loading…
x
Reference in New Issue
Block a user