Merge pull request #2588 from internetee/update-nokogiri

Refactored parsed response for dnskey
This commit is contained in:
Timo Võhmar 2023-06-07 16:13:49 +03:00 committed by GitHub
commit 61c7b59cc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -171,7 +171,10 @@ module Epp
end end
def parsed_response_for_dnskey(value) def parsed_response_for_dnskey(value)
doc = Nokogiri::Slop params[:parsed_frame].css(value).to_html frame = params[:parsed_frame].css(value)
return true if frame.empty?
doc = Nokogiri::Slop frame.to_html
return true if doc.document.children.empty? return true if doc.document.children.empty?
store = [] store = []