about summary refs log tree commit homepage
path: root/ext
diff options
context:
space:
mode:
authornormalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-08 08:13:15 +0000
committernormalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9>2008-03-08 08:13:15 +0000
commitdbe1cf337512b8c66eacf6b0c71d075e965a727a (patch)
tree1e81b3553f15249cc1f997ce6d3c7b4af8b4afa2 /ext
parent2289acf852fae97d0484304870495b8fc15f752e (diff)
downloadunicorn-dbe1cf337512b8c66eacf6b0c71d075e965a727a.tar.gz
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
Diffstat (limited to 'ext')
-rw-r--r--ext/http11/http11.c2
1 files changed, 2 insertions, 0 deletions
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
 };