rack-test_app
rack-test_app copied to clipboard
Enable removing default env entries
I needed to test how my app responds when "Content-Length" header missing (which is the case for Transfer-Encoding: chunked
requests). For that I need the ability to remove default entries from the env hash. With this commit I can now do
app.post "/upload", input: "...", env: {"CONTENT_LENGTH" => nil}