Compare commits

...

2 Commits

Author SHA1 Message Date
HoneyryderChuck
c71d4048af bumped version to 0.23.2 2023-05-05 17:25:47 +01:00
HoneyryderChuck
877e561a45 fix unavailable hostname variable
Fixes #234
2023-05-05 14:57:42 +00:00
3 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
# 0.23.2
## Bugfixes
* fix missing variable on code path in the native resolver.

View File

@ -281,7 +281,7 @@ module HTTPX
def parse_addresses(addresses) def parse_addresses(addresses)
if addresses.empty? if addresses.empty?
# no address found, eliminate candidates # no address found, eliminate candidates
_, connection = @queries.first hostname, connection = @queries.first
reset_hostname(hostname) reset_hostname(hostname)
@connections.delete(connection) @connections.delete(connection)
raise NativeResolveError.new(connection, connection.origin.host) raise NativeResolveError.new(connection, connection.origin.host)

View File

@ -1,5 +1,5 @@
# frozen_string_literal: true # frozen_string_literal: true
module HTTPX module HTTPX
VERSION = "0.23.1" VERSION = "0.23.2"
end end