We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 02a742f commit 7203d71Copy full SHA for 7203d71
spec/support/rspec_api_documentation_patch.rb
@@ -0,0 +1,16 @@
1
+# Monkey patch to provide a robust read_request_body helper compatible with Rack 3
2
+# See:
3
+# https://github.com/zipmark/rspec_api_documentation/pull/550
4
+# https://github.com/zipmark/rspec_api_documentation/issues/548
5
+
6
+begin
7
+ module RspecApiDocumentation
8
+ class ClientBase
9
+ def read_request_body
10
+ input = last_request.env['rack.input'] || StringIO.new
11
+ input.rewind
12
+ input.read
13
+ end
14
15
16
+end
0 commit comments