class H2OConfigurator::AutoExtensionHandler
Public Instance Methods
call(env)
click to toggle source
# File lib/h2o-configurator/handlers/auto-extension.rb, line 5 def call(env) if env['PATH_INFO'] =~ %r{(/|\.\w+)$} [399, {}, []] else [307, {'x-reproxy-url' => env['PATH_INFO'] + '.html'}, []] end end