rack-proxy 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/rack/proxy.rb +4 -2
- data/rack-proxy.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
data/lib/rack/proxy.rb
CHANGED
@@ -31,8 +31,10 @@ module Rack
|
|
31
31
|
target_request.initialize_http_header(extract_http_request_headers(source_request.env))
|
32
32
|
|
33
33
|
# Setup body
|
34
|
-
if target_request.request_body_permitted?
|
35
|
-
target_request.body_stream
|
34
|
+
if target_request.request_body_permitted?
|
35
|
+
target_request.body_stream = source_request.body
|
36
|
+
target_request.content_length = source_request.content_length
|
37
|
+
target_request.content_type = source_request.content_type
|
36
38
|
end
|
37
39
|
|
38
40
|
# Create a streaming response (the actual network communication is deferred, a.k.a. streamed)
|
data/rack-proxy.gemspec
CHANGED