lib/lanyon/application.rb in lanyon-0.2.3 vs lib/lanyon/application.rb in lanyon-0.3.0

- old
+ new

@@ -41,11 +41,10 @@ private def response(filename) # :nodoc: response = Rack::Response.new(File.binread(filename)) response["Content-Type"] = media_type(filename) - response["Last-Modified"] = modification_time(filename) response.finish end def html_response(body, status, headers = {}) # :nodoc: @@ -57,13 +56,9 @@ def media_type(filename) # :nodoc: extension = ::File.extname(filename) Rack::Mime.mime_type(extension) - end - - def modification_time(filename) # :nodoc: - File.mtime(filename).httpdate end def html_wrap(title, content) # :nodoc: <<-document.gsub(/^ {6}/, "") <!DOCTYPE html>