

Loading…
handle chunked response, fixes #6
update server.js in production
Merge pull request #2 from github/accept_header …
Empty Accept Header Fixup & Internal Redirect 404ing
Ensure Location header on redirects before parsing …
Fixes crash when HTTP redirect received without a Location header set.
Merge pull request #7 from github/survive_redirect_with_no_location …
Ensure Location header on redirects before parsing
heroku supports the latest node now
Merge pull request #8 from github/bump-node-version …
Heroku supports the latest node now
Merge remote-tracking branch 'public/master' …
Conflicts: package.json server.coffee server.js
follow https redirects to images
Merge remote-tracking branch 'kevinmehall/fixes-for-upstream' into fi… …
…xes-for-upstream
Merge remote-tracking branch 'origin/master' into fixes-for-upstream …
Conflicts: server.js
switch to 301 on https redirects
don't forward headers along anymore
Merge pull request #14 from github/no-forwarded-for …
Don't forward headers along anymore
Use http.request rather than http.createClient …
node docs say createClient is deprecated
Return 404 on client request errors
Remove special env test from readme
Merge pull request #17 from github/http-request …
Use http.request rather than http.createClient
Merge branch 'master' into proxy-ssl
Merge remote-tracking branch 'origin/rollback' into rollback-merge …
Conflicts: server.coffee server.js
update version in package.json
| @@ -1,3 +1,4 @@ | ||
| node_modules | ||
| tmp/camouflage.pid | ||
| tmp/camo.pid | ||
| +.node-version |
| @@ -1,4 +1,4 @@ | ||
| source 'https://rubygems.org' | ||
| +gem 'rack' | ||
| gem 'rest-client', '~>1.3' | ||
| gem 'addressable', '~>2.3' | ||
| -gem 'thin' |
| @@ -0,0 +1,3 @@ | ||
| +run lambda { |env| | ||
| + raise "b00m" | ||
| +} |
| @@ -0,0 +1,5 @@ | ||
| +run lambda { |env| | ||
| + path = File.expand_path('../octocat.jpg', __FILE__) | ||
| + data = File.read(path) | ||
| + [200, {'Content-Type' => 'image/jpg'}, [data]] | ||
| +} |
| @@ -1,11 +1,7 @@ | ||
| -require 'thin' | ||
| - | ||
| class ProxyTestServer | ||
| def call(env) | ||
| [302, {"Content-Type" => "image/foo"}, "test"] | ||
| end | ||
| end | ||
| -Thin::Server.start('127.0.0.1', 9292) do | ||
| - run ProxyTestServer.new | ||
| -end | ||
| +run ProxyTestServer.new |
This is a backport of @josh's work on our camo install for GitHub. The StreamLimiter stuff that was introduced in #34 failed to run reliably in production so we've reverted it. We've also removed the host blacklisting feature since it's not a concern anymore since we now run on heroku.
The two big improvements over the old versions are:
/cc @josh am I forgetting anything?