Sha256: 85e3f76f2b4bd6835f70829eecf3e41705b486f7f4c5b90d8cfce13c5f0dc207
Contents?: true
Size: 421 Bytes
Versions: 58
Compression:
Stored size: 421 Bytes
Contents
require 'sinatra' require File.join(File.dirname(__FILE__), 'webrick_patch') class App < Sinatra::Base set :environment, :production enable :dump_errors get('*') do headers( "Sent-Request-Uri" => request.env['REQUEST_URI'].to_s, "Sent-Host" => request.env['HTTP_HOST'].to_s, "Sent-Proxy-Connection" => request.env['HTTP_PROXY_CONNECTION'].to_s ) 'proxied content' end end run App
Version data entries
58 entries across 56 versions & 4 rubygems