Guest User

Untitled

a guest
Feb 21st, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. Index: lib/mongrel/rails.rb
  2. ===================================================================
  3. --- lib/mongrel/rails.rb (revision 346)
  4. +++ lib/mongrel/rails.rb (working copy)
  5. @@ -61,7 +61,7 @@
  6. end
  7.  
  8. path_info = request.params[Mongrel::Const::PATH_INFO]
  9. - page_cached = path_info + ".html"
  10. + page_cached = path_info + ActionController::Base.page_cache_extension
  11. get_or_head = @@file_only_methods.include? request.params[Mongrel::Cons
  12. t::REQUEST_METHOD]
  13.  
  14. if get_or_head and @files.can_serve(path_info)
Add Comment
Please, Sign In to add comment