summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_router.c
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2020-12-08 01:59:46 +0300
committerValentin Bartenev <vbart@nginx.com>2020-12-08 01:59:46 +0300
commit2348229dc7656f36a7915d85af56aae9ed9fb120 (patch)
tree37f5ce3dcfe6ae4859ce6440765e0b5fa2d4518b /src/nxt_router.c
parentbda76b04e9aec295c7fa11c7eacb6e11c4bf67f4 (diff)
downloadunit-2348229dc7656f36a7915d85af56aae9ed9fb120.tar.gz
unit-2348229dc7656f36a7915d85af56aae9ed9fb120.tar.bz2
PHP: populating PHP_AUTH_* server variables.
This closes #498 issue on GitHub.
Diffstat (limited to 'src/nxt_router.c')
-rw-r--r--src/nxt_router.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/nxt_router.c b/src/nxt_router.c
index 9dd5c30e..871602e4 100644
--- a/src/nxt_router.c
+++ b/src/nxt_router.c
@@ -5169,6 +5169,7 @@ nxt_router_prepare_msg(nxt_task_t *task, nxt_http_request_t *r,
req->content_length_field = NXT_UNIT_NONE_FIELD;
req->content_type_field = NXT_UNIT_NONE_FIELD;
req->cookie_field = NXT_UNIT_NONE_FIELD;
+ req->authorization_field = NXT_UNIT_NONE_FIELD;
dst_field = req->fields;
@@ -5193,6 +5194,9 @@ nxt_router_prepare_msg(nxt_task_t *task, nxt_http_request_t *r,
} else if (field == r->cookie) {
req->cookie_field = dst_field - req->fields;
+
+ } else if (field == r->authorization) {
+ req->authorization_field = dst_field - req->fields;
}
nxt_debug(task, "add field 0x%04Xd, %d, %d, %p : %d %p",