Changeset 994

Show
Ignore:
Timestamp:
03/08/08 03:13:15 (6 months ago)
Author:
normalperson
Message:

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.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/ext/http11/http11.c

    r993 r994  
    113113        f("USER_AGENT"), 
    114114        f("VIA"), 
     115        f("X_FORWARDED_FOR"), /* common for proxies */ 
     116        f("X_REAL_IP"), /* common for proxies */ 
    115117        f("WARNING") 
    116118# undef f