diff --git a/config.ru b/config.ru index a07dd14..0c274dc 100755 --- a/config.ru +++ b/config.ru @@ -13,12 +13,12 @@ end map '/headers' do headers = proc do |env| - [200, { "Content-Type" => "text/html" }, [ + [200, { "Content-Type" => "text/plain" }, [ env.select {|key,val| key.start_with? 'HTTP_'} .collect {|key, val| [key.sub(/^HTTP_/, ''), val]} - .collect {|key, val| CGI::escapeHTML "#{key}: #{val}"} + .collect {|key, val| "#{key}: #{val}"} .sort - .join("
\n") + .join("\n") ]] end run headers