rackproxy 0.0.1 → 0.0.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.
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # Rackproxy
1
+ # Rack::Proxy
2
2
 
3
3
  A Rack App compatible HTTP Proxy
4
4
 
@@ -12,7 +12,8 @@ module Rack::Proxy
12
12
  uri = URI(request.url)
13
13
 
14
14
  uri.scheme, uri.userinfo, uri.host, uri.port = @host.scheme, @host.userinfo, @host.host, @host.port
15
-
15
+ uri.path = env['PATH_INFO']
16
+
16
17
  forward_request = Net::HTTP.const_get(request_method(request)).new(uri.request_uri)
17
18
  if forward_request.request_body_permitted? and request.body
18
19
  forward_request.body_stream = request.body
@@ -1,5 +1,5 @@
1
1
  module Rack
2
2
  module Proxy
3
- VERSION = "0.0.1"
3
+ VERSION = "0.0.2"
4
4
  end
5
5
  end
@@ -1,2 +1 @@
1
- require "rack/proxy/version"
2
1
  require "rack/proxy"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rackproxy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  version: '0'
75
75
  segments:
76
76
  - 0
77
- hash: -2736428622105820675
77
+ hash: 1882061226482430206
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  none: false
80
80
  requirements:
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  segments:
85
85
  - 0
86
- hash: -2736428622105820675
86
+ hash: 1882061226482430206
87
87
  requirements: []
88
88
  rubyforge_project:
89
89
  rubygems_version: 1.8.18