fix error
This commit is contained in:
parent
3b214e3519
commit
97dd61fc52
|
@ -11,7 +11,7 @@ namespace :feeds_module do
|
||||||
req = Net::HTTP::Get.new(uri)
|
req = Net::HTTP::Get.new(uri)
|
||||||
http.request(req).body rescue ''
|
http.request(req).body rescue ''
|
||||||
end
|
end
|
||||||
File.open(File.join(feed_directory.to_s,self.feed_uid + ".json"),"w") do |file|
|
File.open(File.join(feed_directory.to_s,site_feed.feed_uid + ".json"),"w") do |file|
|
||||||
res.force_encoding("utf-8")
|
res.force_encoding("utf-8")
|
||||||
file.write(res)
|
file.write(res)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue