[interchange-cvs] [SCM] Interchange branch, master, updated. c96b7df1bb33979732cebd25b839828cfd89893a

Gert van der Spoel interchange-cvs at icdevgroup.org
Fri Jul 10 07:25:56 UTC 2009


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Interchange".

The branch, master has been updated
       via  c96b7df1bb33979732cebd25b839828cfd89893a (commit)
      from  10e425c4d1aaa42b9962599834033bc28e0f6673 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit c96b7df1bb33979732cebd25b839828cfd89893a
Author: Gert van der Spoel <ic at 3edge.com>
Date:   Thu Jul 9 09:39:32 2009 +0200

    added http_x_forwarded_for to @Map
    
    When running behing a proxy server this provides some extra assistance
    if there is no value for 'remote_addr' in this instance.
    
    Also realigned the mapping for the sake of aestetics.

-----------------------------------------------------------------------

Summary of changes and diff:
 lib/Vend/Server.pm |   45 ++++++++++++++++++++++++---------------------
 1 files changed, 24 insertions(+), 21 deletions(-)

diff --git a/lib/Vend/Server.pm b/lib/Vend/Server.pm
index ad9aa5d..62e1759 100644
--- a/lib/Vend/Server.pm
+++ b/lib/Vend/Server.pm
@@ -61,27 +61,30 @@ sub new {
 }
 
 my @Map = qw/
-    authorization      AUTHORIZATION
-    content_length     CONTENT_LENGTH
-    content_type       CONTENT_TYPE
-    content_encoding   HTTP_CONTENT_ENCODING
-    cookie             HTTP_COOKIE
-    http_host          HTTP_HOST
-    path_info          PATH_INFO
-    pragma             HTTP_PRAGMA
-    query_string       QUERY_STRING
-    referer            HTTP_REFERER
-    remote_addr        REMOTE_ADDR
-    remote_host        REMOTE_HOST
-    remote_user        REMOTE_USER
-    request_method     REQUEST_METHOD
-    request_uri        REQUEST_URI
-    script_name        SCRIPT_NAME
-    secure             HTTPS
-    server_name        SERVER_NAME
-    server_host        HTTP_HOST
-    server_port        SERVER_PORT
-    useragent          HTTP_USER_AGENT
+    authorization         AUTHORIZATION
+    content_length        CONTENT_LENGTH
+    content_type          CONTENT_TYPE
+    content_encoding      HTTP_CONTENT_ENCODING
+    cookie                HTTP_COOKIE
+    http_host             HTTP_HOST
+    path_info             PATH_INFO
+    pragma                HTTP_PRAGMA
+    query_string          QUERY_STRING
+    referer               HTTP_REFERER
+    remote_addr           REMOTE_ADDR
+    remote_host           REMOTE_HOST
+    remote_user           REMOTE_USER
+    request_method        REQUEST_METHOD
+    request_uri           REQUEST_URI
+    script_name           SCRIPT_NAME
+    secure                HTTPS
+    server_name           SERVER_NAME
+    server_host           HTTP_HOST
+    server_port           SERVER_PORT
+    useragent             HTTP_USER_AGENT
+    http_x_forwarded_for  HTTP_X_FORWARDED_FOR
+
+
 /;
 
 my @RedirMap = qw/


hooks/post-receive
-- 
Interchange



More information about the interchange-cvs mailing list