Class: H2OConfigurator::AutoExtensionHandler
- Inherits:
-
Object
- Object
- H2OConfigurator::AutoExtensionHandler
- Defined in:
- lib/h2o-configurator/handlers/auto-extension.rb
Instance Method Summary collapse
Instance Method Details
#call(env) ⇒ Object
5 6 7 8 9 10 11 |
# 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 |