mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Set a more explicit SERVER_SOFTWARE Rack variable
When you need to have a switch in an infrastructure middleware (streaming, events and sockets) you might have to make runtime decisions based on the server that is being used. The Rack env header is the only way for the underlying Rack app to see which server it is being run on. Previously it would only contain the puma version string, which is insufficient.
This commit is contained in:
parent
32b1fb3742
commit
9a32593964
2 changed files with 3 additions and 2 deletions
|
@ -28,7 +28,7 @@ module Puma
|
|||
|
||||
"QUERY_STRING".freeze => "",
|
||||
SERVER_PROTOCOL => HTTP_11,
|
||||
SERVER_SOFTWARE => PUMA_VERSION,
|
||||
SERVER_SOFTWARE => PUMA_SERVER_STRING,
|
||||
GATEWAY_INTERFACE => CGI_VER
|
||||
}
|
||||
|
||||
|
|
|
@ -101,7 +101,8 @@ module Puma
|
|||
|
||||
PUMA_VERSION = VERSION = "3.0.2".freeze
|
||||
CODE_NAME = "Plethora of Penguin Pinatas".freeze
|
||||
|
||||
PUMA_SERVER_STRING = ['puma', PUMA_VERSION, CODE_NAME].join(' ').freeze
|
||||
|
||||
FAST_TRACK_KA_TIMEOUT = 0.2
|
||||
|
||||
# The default number of seconds for another request within a persistent
|
||||
|
|
Loading…
Reference in a new issue