test/testrequest.rb in rack-1.2.2 vs test/testrequest.rb in rack-1.2.3
- old
+ new
@@ -1,9 +1,10 @@
require 'yaml'
require 'net/http'
+require 'rack/lint'
class TestRequest
- NOSERIALIZE = [Method, Proc]
+ NOSERIALIZE = [Method, Proc, Rack::Lint::InputWrapper]
def call(env)
status = env["QUERY_STRING"] =~ /secret/ ? 403 : 200
env["test.postdata"] = env["rack.input"].read
minienv = env.dup