rack-proxy 0.3.5 → 0.3.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rack/proxy.rb +1 -1
- data/test/net_http_hacked_test.rb +2 -2
- metadata +3 -3
data/lib/rack/proxy.rb
CHANGED
@@ -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("
|
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:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 6
|
10
|
+
version: 0.3.6
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jacek Becela
|