Permalink
Browse files

Honor X-Awesome-Proxy

  • Loading branch information...
sorah committed Oct 22, 2017
1 parent 618d971 commit 682e4dbba96ed76d84bb0fc3daf7945fa7178023
Showing with 4 additions and 2 deletions.
  1. +4 −2 isubata/webapp/ruby/app.rb
@@ -265,8 +265,10 @@ def user
return 403
end
unless session.delete(:bakusoku)
AwesomeFetch.instance.wait
unless request.env['HTTP_X_AWESOME_PROXY']
unless session.delete(:bakusoku)
AwesomeFetch.instance.wait
end
end
rs = redis.hgetall(redis_key_total_messages)

0 comments on commit 682e4db

Please sign in to comment.