From 1f5bac15cd8e4393c6da98eb7bb4532133dc6259 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 21 Dec 2010 01:28:23 +0000 Subject: http: hook up "trust_x_forwarded" to configurator More config bloat, sadly this is necessary for Rainbows! :< --- lib/unicorn/http_server.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lib/unicorn/http_server.rb') 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 -- cgit v1.2.3-24-ge0c7