Permalink
Browse files

Fix following proxy when running on unicorn

  • Loading branch information...
1 parent 4c23a1b commit 5ec2109434bed0079b9dd6a5519bd75e69fe0451 Jesse Stuart committed Dec 27, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 lib/tentd/api/followings.rb
@@ -215,7 +215,10 @@ def action(env)
env.params.delete(:following_id)
path = env.params.delete(:proxy_path).sub(%r{\A/}, '')
res = client.http.get(path, env.params, whitelisted_headers(env))
- [res.status, res.headers, [res.body]]
+ headers = res.headers
+ blacklist = %w[ transfer-encoding connection status ]
+ blacklist.each { |key| headers.delete(key) }
+ [res.status, headers, [res.body]]
end
def whitelisted_headers(env)

0 comments on commit 5ec2109

Please sign in to comment.