rack-proxy 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/rack/proxy.rb +4 -2
  3. data/rack-proxy.gemspec +1 -1
  4. metadata +1 -1
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -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? && source_request.body
35
- target_request.body_stream = source_request.body
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)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rack-proxy}
8
- s.version = "0.3.1"
8
+ s.version = "0.3.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jacek Becela"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-proxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacek Becela