Merge pull request #5510 from inspec/nm/http-utf8

HTTP resource response body coerced into UTF-8
This commit is contained in:
Clinton Wolfe 2021-05-10 16:35:24 -04:00 committed by GitHub
commit 9511c1aaeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,7 +56,7 @@ module Inspec::Resources
end
def body
@worker.body
@worker.body&.force_encoding(Encoding::UTF_8)
end
def http_method