pkgsrc/www/ap2-auth-external/patches/patch-aa
sborrill 3dbdd0370d Import apache 2.x portion after splitting ap-auth-external into 1.x and 2.x.
mod_auth_external allows you to use an external script for Apache authentication.
2007-12-20 14:59:14 +00:00

22 lines
758 B
Text

$NetBSD: patch-aa,v 1.1.1.1 2007/12/20 14:59:14 sborrill Exp $
--- mod_auth_external.c.orig 2007-12-19 15:17:29.000000000 +0000
+++ mod_auth_external.c 2007-12-19 15:17:29.000000000 +0000
@@ -242,6 +242,7 @@
#define ENV_PASS "PASS"
#define ENV_GROUP "GROUP"
#define ENV_URI "URI"
+#define ENV_METHOD "METHOD"
#define ENV_IP "IP"
#define ENV_HOST "HOST" /* Remote Host */
#define ENV_HTTP_HOST "HTTP_HOST" /* Local Host */
@@ -506,6 +507,9 @@
if (r->uri)
child_env[i++]= apr_pstrcat(r->pool, ENV_URI"=", r->uri, NULL);
+ if (r->method)
+ child_env[i++]= apr_pstrcat(r->pool, ENV_METHOD"=", r->method, NULL);
+
if ((host= lookup_header(r,"Host")) != NULL)
child_env[i++]= apr_pstrcat(r->pool, ENV_HTTP_HOST"=", host, NULL);