更新 app/controllers/page_contents_controller.rb
設定逾時是 5 秒read_timeout!
This commit is contained in:
parent
2bbbb4f5af
commit
c27ed0da64
|
|
@ -99,6 +99,7 @@ private
|
|||
http.use_ssl = true
|
||||
end
|
||||
http.open_timeout = 5
|
||||
http.read_timeout = 5
|
||||
relative_path = (uri.path.blank? ? "/" : uri.path)
|
||||
if !relative_path.start_with?("http") && !relative_path.start_with?("/")
|
||||
relative_path = "/" + relative_path
|
||||
|
|
|
|||
Loading…
Reference in New Issue