fixes #2501: Popular searches broken

This commit is contained in:
r888888888 2015-08-21 16:56:29 -07:00
parent 2962cb80f1
commit 63ce7f3414

View File

@ -16,7 +16,7 @@ class PopularSearchService
Cache.get("ps-#{scale}-#{dates}", 1.minute) do
url = URI.parse("#{Danbooru.config.report_server}/hits/#{scale}?date=#{dates}")
response = []
response = ""
Net::HTTP.start(url.host, url.port, :use_ssl => url.is_a?(URI::HTTPS)) do |http|
http.read_timeout = 1
http.request_get(url.request_uri) do |res|
@ -28,4 +28,4 @@ class PopularSearchService
response
end
end
end
end