Sha256: 9af72fc56a4933118314dcf0cbc4a44750b198db0d7e88abf98222050bfe04f5
Contents?: true
Size: 278 Bytes
Versions: 3
Compression:
Stored size: 278 Bytes
Contents
require 'rack/file' module Rack class FileAlfa < File #Deny .htaccess files def _call(env) return fail(404, 'Not found') if env['PATH_INFO'].split(SEPS).last == '.htaccess' @headers['Expires'] = (Time.now + 2592000).httpdate super end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
alfa-0.0.8.pre | lib/rack/file_alfa.rb |
alfa-0.0.7.pre | lib/rack/file_alfa.rb |
alfa-0.0.6.pre | lib/rack/file_alfa.rb |