Skip to content

Commit 96c8f7b

Browse files
committed
send original content type along with proxied request
1 parent 7bbded6 commit 96c8f7b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/rack/reverse_proxy.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ def call(env)
5252
else
5353
req.content_length = rackreq.body.size
5454
end
55-
55+
56+
req.content_type = rackreq.content_type unless rackreq.content_type.nil?
5657
req.body_stream = rackreq.body
5758
else
5859
raise "method not supported: #{m}"

0 commit comments

Comments
 (0)