We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 8635155 + 712c228 commit f4e5508Copy full SHA for f4e5508
lib/rspec_api_documentation/client_base.rb
@@ -44,7 +44,7 @@ def process(method, path, params = {}, headers ={})
44
end
45
46
def read_request_body
47
- input = last_request.env["rack.input"]
+ input = last_request.env["rack.input"] || StringIO.new
48
input.rewind
49
input.read
50
0 commit comments