diff options
author | normalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9> | 2008-03-08 08:13:15 +0000 |
---|---|---|
committer | normalperson <normalperson@19e92222-5c0b-0410-8929-a290d50e31e9> | 2008-03-08 08:13:15 +0000 |
commit | dbe1cf337512b8c66eacf6b0c71d075e965a727a (patch) | |
tree | 1e81b3553f15249cc1f997ce6d3c7b4af8b4afa2 | |
parent | 2289acf852fae97d0484304870495b8fc15f752e (diff) | |
download | unicorn-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
-rw-r--r-- | ext/http11/http11.c | 2 |
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 }; |