Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (15 sloc) 405 Bytes
run lambda{ |env|
if env["PATH_INFO"] == '/'
if env['spdy']
env['spdy'].push('/1.js')
env['spdy'].push('/2.js')
env['spdy'].push('/3.js')
end
body = ["<script src='1.js'></script><script src='2.js'></script><script src='3.js'></script>"]
tp = 'text/html'
else
body = ["a='#{'x'*100_000}'"]
tp = 'text/javascript'
end
[200, {"Content-Type" => tp}, body]
}
Something went wrong with that request. Please try again.