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 38f746a commit c72245bCopy full SHA for c72245b
lib/rack/reverse_proxy.rb
@@ -37,7 +37,7 @@ def call(env)
37
when "PUT", "POST"
38
req = Net::HTTP.const_get(m.capitalize).new(uri.request_uri, headers)
39
req.basic_auth all_opts[:username], all_opts[:password] if all_opts[:username] and all_opts[:password]
40
- req.content_length = rackreq.body.length
+ req.content_length = rackreq.body.size
41
req.body_stream = rackreq.body
42
else
43
raise "method not supported: #{m}"
0 commit comments