rack-proxy 0.3.5 → 0.3.6

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.
@@ -5,7 +5,7 @@ module Rack
5
5
 
6
6
  # Subclass and bring your own #rewrite_request and #rewrite_response
7
7
  class Proxy
8
- VERSION = "0.3.5"
8
+ VERSION = "0.3.6"
9
9
 
10
10
  def call(env)
11
11
  rewrite_response(perform_request(rewrite_env(env)))
@@ -5,7 +5,7 @@ class NetHttpHackedTest < Test::Unit::TestCase
5
5
 
6
6
  def test_net_http_hacked
7
7
  req = Net::HTTP::Get.new("/")
8
- http = Net::HTTP.start("trix.pl", "80")
8
+ http = Net::HTTP.start("www.iana.org", "80")
9
9
 
10
10
  # Response code
11
11
  res = http.begin_request_hacked(req)
@@ -16,7 +16,7 @@ class NetHttpHackedTest < Test::Unit::TestCase
16
16
  res.each_header { |k, v| headers[k] = v }
17
17
 
18
18
  assert headers.size > 0
19
- assert headers["content-type"] == "text/html"
19
+ assert headers["content-type"] == "text/html; charset=UTF-8"
20
20
  assert headers["content-length"].to_i > 0
21
21
 
22
22
  # Body
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-proxy
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 5
10
- version: 0.3.5
9
+ - 6
10
+ version: 0.3.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jacek Becela