Skip to content

Commit 20c688f

Browse files
author
Kevin Paulisse
committed
Specify character set for these facts
1 parent cb4ece3 commit 20c688f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/octocatalog-diff/tests/catalog/puppetmaster_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@
106106
# An extra 'unescape' is here because the facts are double escaped.
107107
# See https://docs.puppet.com/puppet/latest/http_api/http_catalog.html#parameters
108108
# and https://github.com/puppetlabs/puppet/pull/1818
109-
data = CGI.unescape(@post_data['facts'])
109+
data = CGI.unescape(@post_data['facts'], 'UTF-8')
110110
result = JSON.parse(data)['values']
111111
expect(result).to eq(answer)
112112
end

0 commit comments

Comments
 (0)