diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-12-21 01:28:23 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-12-21 01:28:23 +0000 |
commit | 1f5bac15cd8e4393c6da98eb7bb4532133dc6259 (patch) | |
tree | 4d230cdb233014230714d021a00e40ffad93f595 /lib/unicorn/http_server.rb | |
parent | bf64b9aa855cf3590a4d5b4eca853aef33ba90cc (diff) | |
download | unicorn-1f5bac15cd8e4393c6da98eb7bb4532133dc6259.tar.gz |
More config bloat, sadly this is necessary for Rainbows! :<
Diffstat (limited to 'lib/unicorn/http_server.rb')
-rw-r--r-- | lib/unicorn/http_server.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/unicorn/http_server.rb b/lib/unicorn/http_server.rb index 29b34d6..6f02f29 100644 --- a/lib/unicorn/http_server.rb +++ b/lib/unicorn/http_server.rb @@ -372,6 +372,14 @@ class Unicorn::HttpServer Unicorn::TeeInput.client_body_buffer_size = bytes end + def trust_x_forwarded + Unicorn::HttpParser.trust_x_forwarded? + end + + def trust_x_forwarded=(bool) + Unicorn::HttpParser.trust_x_forwarded = bool + end + private # wait for a signal hander to wake us up and then consume the pipe |