goliath-reverse-proxy 0.1.0 → 0.1.1
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 +11 -0
- data/goliath-reverse-proxy.gemspec +1 -1
- data/lib/goliath/rack/reverse_proxy.rb +0 -2
- metadata +1 -1
data/README.md
CHANGED
|
@@ -7,6 +7,17 @@ Dependencies
|
|
|
7
7
|
============
|
|
8
8
|
All the work is done by em-http-request, em-syncrony, and goliath.
|
|
9
9
|
|
|
10
|
+
|
|
11
|
+
Install
|
|
12
|
+
=======
|
|
13
|
+
|
|
14
|
+
gem install goliath-reverse-proxy
|
|
15
|
+
|
|
16
|
+
or add to your Gemfile
|
|
17
|
+
|
|
18
|
+
gem 'goliath-reverse-proxy'
|
|
19
|
+
|
|
20
|
+
|
|
10
21
|
Example
|
|
11
22
|
=======
|
|
12
23
|
|
|
@@ -2,7 +2,7 @@ require 'rubygems'
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = 'goliath-reverse-proxy'
|
|
5
|
-
gem.version = '0.1.
|
|
5
|
+
gem.version = '0.1.1'
|
|
6
6
|
gem.authors = ["Daniel Farrell"]
|
|
7
7
|
gem.email = 'danielfarrell76@gmail.com'
|
|
8
8
|
gem.homepage = 'https://github.com/danielfarrell/goliath-reverse-proxy'
|
|
@@ -18,8 +18,6 @@ module Goliath
|
|
|
18
18
|
env.each do |key, value|
|
|
19
19
|
headers[$1] = value if key =~ /HTTP_(.*)/
|
|
20
20
|
end
|
|
21
|
-
headers['CONTENT_TYPE'] = env['CONTENT_TYPE']
|
|
22
|
-
headers['HTTP_HOST'] = env['SERVER_NAME']
|
|
23
21
|
headers['X-Forwarded-Host'] = env['HTTP_HOST']
|
|
24
22
|
headers['REMOTE_USER'] = env['REMOTE_USER']
|
|
25
23
|
|