[nginx-tests] Tests: renamed $proxy_port in mail_oauth.t to avoi...
Maxim Dounin
mdounin at mdounin.ru
Mon Jun 8 14:57:47 UTC 2026
details: http://freenginx.org/hg/nginx-tests/rev/26ac2f9b63f4
branches:
changeset: 2065:26ac2f9b63f4
user: Maxim Dounin <mdounin at mdounin.ru>
date: Mon Jun 08 17:57:08 2026 +0300
description:
Tests: renamed $proxy_port in mail_oauth.t to avoid conflicts.
The $proxy_port variable is a standard variable provided by the proxy
module, and redefining it to something different might not be a good
idea.
diffstat:
mail_oauth.t | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (21 lines):
diff --git a/mail_oauth.t b/mail_oauth.t
--- a/mail_oauth.t
+++ b/mail_oauth.t
@@ -67,7 +67,7 @@ http {
map_hash_bucket_size 64;
- map $http_auth_protocol $proxy_port {
+ map $http_auth_protocol $port {
imap %%PORT_8144%%;
pop3 %%PORT_8111%%;
smtp %%PORT_8026%%;
@@ -94,7 +94,7 @@ http {
location = /mail/auth {
add_header Auth-Status $reply;
add_header Auth-Server 127.0.0.1;
- add_header Auth-Port $proxy_port;
+ add_header Auth-Port $port;
add_header Auth-Pass $passw;
add_header Auth-Wait 1;
add_header Auth-Error-SASL $sasl;
More information about the nginx-devel
mailing list