rack-passthrough 0.0.3 → 0.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8de2ce20df94b731c3f4e9c54764b7b2a7178f42
4
- data.tar.gz: 4194ae3062eb676b1372f4b3f7f96c64176c5060
3
+ metadata.gz: 86efacde93cb5efbf5f2dcc92664c167e6ebf760
4
+ data.tar.gz: aefa1e4273cd1c18ccda56693d2bff57c514b819
5
5
  SHA512:
6
- metadata.gz: 2d029af9fa12c8e7bcefe5379c5adbf8e7763bb93aec6b8ec0949ab8daa81c5e8cd746520a893b0acb49a3f0413fb33b3d39ca7f441aaaa6612c1338f55f809a
7
- data.tar.gz: 75089a8a04fadb512d9349af5a79109f4e63cfb907b71a7d37356584b918d42cc5fb112e480db9283ae49f511f1251a27c992a5399c583f8bb058530069fa483
6
+ metadata.gz: c4dd94a7d5e24fed7524c20f3305804dd3bbd3431b135aef302acb7690212e174adaf0e18e755dcc22b4d14c848ab9bbffd4c46d6f674771dabab22aa0fdc291
7
+ data.tar.gz: 60c348ae3c97c297a64ce9fe9e8b53b0a913d13ef25c2fcfa5ea6d015330fbb159317ffcca8c2e0353045e91cf9cf4a41cff3c59ebce3c8ca6c5b82fc3ce9a4a
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Passthrough
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  end
@@ -38,15 +38,16 @@ module Rack
38
38
  end
39
39
 
40
40
  response = conn.call( full_path.to_s, { body: body } )
41
- headers = {}
42
41
 
42
+ # Headers
43
+ headers = {}
43
44
  response.headers.each do |key,value|
44
45
  headers.merge!({ key => to_normal_string(value) })
45
46
  end
46
47
 
47
- puts "*******************"
48
- puts response.body.inspect
49
- puts "*******************"
48
+ # Fix no response
49
+ headers.except!('transfer-encoding')
50
+
50
51
 
51
52
  [ response.code , headers , [response.body] ]
52
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-passthrough
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jo