mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Remove the default Content-Type: text/plain
This commit is contained in:
parent
a42d424494
commit
a2b02294c8
1 changed files with 4 additions and 4 deletions
|
@ -20,10 +20,10 @@ module Puma
|
|||
"rack.run_once".freeze => false,
|
||||
"SCRIPT_NAME".freeze => ENV['SCRIPT_NAME'] || "",
|
||||
|
||||
# Rack blows up if this is an empty string, and Rack::Lint
|
||||
# blows up if it's nil. So 'text/plain' seems like the most
|
||||
# sensible default value.
|
||||
"CONTENT_TYPE".freeze => "text/plain",
|
||||
# I'd like to set a default CONTENT_TYPE here but some things
|
||||
# depend on their not being a default set and infering
|
||||
# it from the content. And so if i set it here, it won't
|
||||
# infer properly.
|
||||
|
||||
"QUERY_STRING".freeze => "",
|
||||
SERVER_PROTOCOL => HTTP_11,
|
||||
|
|
Loading…
Add table
Reference in a new issue