Prepares internal file servers for revised Rack::Cascade that looks for a magic header instead of discarding all 404 responses.
Sunshowers is a library that can enhance Rack::Request when used with Rainbows! but is not a server itself. Additionally, the official name for Rainbows! is "Rainbows!" with a bang. Signed-off-by: Christian Neukirchen <firstname.lastname@example.org>
Reverts the hard test for a 'PUT' request method (8d01dc0) and uses the Content-Type to determine whether to read into the request body. The Request#POST method parses the request body if (and only if) either of the following conditions are met: 1. The request's Content-Type is application/x-www-form-urlencoded or multipart/form-data. Note: the REQUEST_METHOD is ignored in this case. 2. The original REQUEST_METHOD is 'POST' and no Content-Type header was specified in the request. Note that we use the REQUEST_METHOD value before any modifications by the MethodOverride middleware. This is very similar to how this worked prior to 8d01dc0 but narrows the 'no Content-Type' special case to apply only to POST requests. A PUT request with no Content-Type header would trigger parsing before - with this change only POST requests with no Content-Type trigger parsing.
can change their behavior [#71 state:resolved]