lib/httpx/resolver/https.rb in httpx-1.2.6 vs lib/httpx/resolver/https.rb in httpx-1.3.0
- old
+ new
@@ -217,10 +217,10 @@
params << ["type", FAMILY_TYPES[@record_type]]
params << ["dns", Base64.urlsafe_encode64(payload, padding: false)]
uri.query = URI.encode_www_form(params)
request = rklass.new("GET", uri, @options)
else
- request = rklass.new("POST", uri, @options.merge(body: [payload]))
+ request = rklass.new("POST", uri, @options, body: [payload])
request.headers["content-type"] = "application/dns-message"
end
request.headers["accept"] = "application/dns-message"
request
end