rack-test_app icon indicating copy to clipboard operation
rack-test_app copied to clipboard

Enable removing default env entries

Open janko opened this issue 7 years ago • 0 comments

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}

janko avatar Jul 06 '17 12:07 janko