Body content of http resourece - enforced utf-8

Signed-off-by: Nikita Mathur <nikita.mathur@chef.io>
This commit is contained in:
Nikita Mathur 2021-05-06 19:32:03 +05:30
parent 401df56e71
commit 174a358355

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