mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-08-03 09:48:00 -04:00
23 lines
753 B
Plaintext
23 lines
753 B
Plaintext
$NetBSD: patch-aa,v 1.2 2008/11/12 09:07:56 martti Exp $
|
|
|
|
--- mod_authnz_external.c.orig 2008-07-31 22:11:46.000000000 +0300
|
|
+++ mod_authnz_external.c 2008-11-12 10:53:39.000000000 +0200
|
|
@@ -90,6 +90,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 */
|
|
@@ -446,6 +447,9 @@
|
|
if (r->uri)
|
|
child_env[i++]= apr_pstrcat(p, ENV_URI"=", r->uri, NULL);
|
|
|
|
+ if (r->method)
|
|
+ child_env[i++]= apr_pstrcat(r->pool, ENV_METHOD"=", r->method, NULL);
|
|
+
|
|
if ((host= apr_table_get(r->headers_in, "Host")) != NULL)
|
|
child_env[i++]= apr_pstrcat(p, ENV_HTTP_HOST"=", host, NULL);
|
|
|