更新 app/controllers/page_contents_controller.rb

設定逾時是 5 秒read_timeout!
This commit is contained in:
jack 2026-08-04 03:44:34 +00:00
parent 2bbbb4f5af
commit c27ed0da64
1 changed files with 1 additions and 0 deletions

View File

@ -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