From 0780de8bfadf55855f6d379f327ddc6851fdf75b Mon Sep 17 00:00:00 2001 From: Jan Kneschke Date: Fri, 6 Oct 2006 07:14:10 +0000 Subject: [PATCH] added the original URI, before the rewrite, to the env. the orig-uri is forwarded as REQUEST_URI to the *CGI backends git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1376 152afb58-edef-0310-8abb-c4023f1b3aa9 --- src/mod_magnet.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mod_magnet.c b/src/mod_magnet.c index 8b45134f..a75b849d 100644 --- a/src/mod_magnet.c +++ b/src/mod_magnet.c @@ -269,6 +269,7 @@ typedef struct { MAGNET_ENV_REQUEST_METHOD, MAGNET_ENV_REQUEST_URI, + MAGNET_ENV_REQUEST_ORIG_URI, MAGNET_ENV_REQUEST_PROTOCOL } type; } magnet_env_t; @@ -290,6 +291,7 @@ static buffer *magnet_env_get_buffer(server *srv, connection *con, const char *k { "request.method", MAGNET_ENV_REQUEST_METHOD }, { "request.uri", MAGNET_ENV_REQUEST_URI }, + { "request.orig-uri", MAGNET_ENV_REQUEST_ORIG_URI }, { "request.protocol", MAGNET_ENV_REQUEST_PROTOCOL }, { NULL, MAGNET_ENV_UNSET } @@ -318,6 +320,7 @@ static buffer *magnet_env_get_buffer(server *srv, connection *con, const char *k case MAGNET_ENV_REQUEST_METHOD: break; case MAGNET_ENV_REQUEST_URI: dest = con->request.uri; break; + case MAGNET_ENV_REQUEST_ORIG_URI: dest = con->request.orig_uri; break; case MAGNET_ENV_REQUEST_PROTOCOL: break; case MAGNET_ENV_UNSET: break;