From dbe1cf337512b8c66eacf6b0c71d075e965a727a Mon Sep 17 00:00:00 2001 From: normalperson Date: Sat, 8 Mar 2008 08:13:15 +0000 Subject: ext/http11: memoize X-Forwarded-For + X-Real-IP headers keys While these headers are not in RFCs, they are commonly set by proxies and having proxies in front of Mongrel is a popular deployment configuration. git-svn-id: svn+ssh://rubyforge.org/var/svn/mongrel/trunk@994 19e92222-5c0b-0410-8929-a290d50e31e9 --- ext/http11/http11.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'ext') diff --git a/ext/http11/http11.c b/ext/http11/http11.c index e0feece..a228019 100644 --- a/ext/http11/http11.c +++ b/ext/http11/http11.c @@ -112,6 +112,8 @@ static struct common_field common_http_fields[] = { f("UPGRADE"), f("USER_AGENT"), f("VIA"), + f("X_FORWARDED_FOR"), /* common for proxies */ + f("X_REAL_IP"), /* common for proxies */ f("WARNING") # undef f }; -- cgit v1.2.3-24-ge0c7