mirror of
https://github.com/HoneyryderChuck/httpx.git
synced 2025-10-04 00:00:37 -04:00
non-ascii: force utf8 encoding for all
This commit is contained in:
parent
81033abd2b
commit
2d078de0a4
@ -32,7 +32,7 @@ module HTTPX
|
||||
|
||||
non_ascii_hostname = URIParser.unescape(uri.host)
|
||||
|
||||
non_ascii_hostname.force_encoding(Encoding::UTF8) if RUBY_ENGINE == "jruby"
|
||||
non_ascii_hostname.force_encoding(Encoding::UTF8)
|
||||
|
||||
idna_hostname = DomainName.new(non_ascii_hostname).hostname
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user