Skip to content

Commit c72245b

Browse files
author
Peter Schrammel
committed
size is not supported (any more?); this works with rack 1.1.1
1 parent 38f746a commit c72245b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rack/reverse_proxy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ def call(env)
3737
when "PUT", "POST"
3838
req = Net::HTTP.const_get(m.capitalize).new(uri.request_uri, headers)
3939
req.basic_auth all_opts[:username], all_opts[:password] if all_opts[:username] and all_opts[:password]
40-
req.content_length = rackreq.body.length
40+
req.content_length = rackreq.body.size
4141
req.body_stream = rackreq.body
4242
else
4343
raise "method not supported: #{m}"

0 commit comments

Comments
 (0)