Sha256: 2101e080bef27a969e66b19791d8278d9db47b0604c9ee29eb11b1f4c50ace13
Contents?: true
Size: 345 Bytes
Versions: 17
Compression:
Stored size: 345 Bytes
Contents
# frozen_string_literal: true class HttpRefreshServlet < WEBrick::HTTPServlet::AbstractServlet def do_GET(req, res) res['Content-Type'] = req.query['ct'] || "text/html" refresh_time = req.query['refresh_time'] || 0 refresh_url = req.query['refresh_url'] || '/' res['Refresh'] = " #{refresh_time};url=#{refresh_url}"; end end
Version data entries
17 entries across 17 versions & 1 rubygems