force utf-8 encoding for missing search call

This commit is contained in:
r888888888
2016-02-02 17:44:53 -08:00
parent 025d66a639
commit 25bc2965b3

View File

@@ -12,11 +12,12 @@ class MissedSearchService
http.read_timeout = 1
http.request_get(url.request_uri) do |res|
if res.is_a?(Net::HTTPSuccess)
puts res.inspect
response = res.body
end
end
end
response
response.force_encoding("utf-8")
end
end
end