We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4eddd01 commit 65d2d85Copy full SHA for 65d2d85
1 file changed
modules/aaa/mod_auth_digest.c
@@ -1650,8 +1650,14 @@ static int add_auth_info(request_rec *r)
1650
return OK;
1651
}
1652
1653
- /* setup nextnonce
1654
- */
+ /* Don't add Authentication-Info for 401/407 responses. */
+ if (apr_table_get(r->err_headers_out,
1655
+ (r->proxyreq == PROXYREQ_PROXY)
1656
+ ? "Proxy-Authenticate" : "WWW-Authenticate")) {
1657
+ return OK;
1658
+ }
1659
+
1660
+ /* Set up nextnonce for one-time-nonces and expiring-nonce cases. */
1661
if (conf->nonce_lifetime > 0) {
1662
/* send nextnonce if current nonce will expire in less than 30 secs */
1663
if ((r->request_time - resp->nonce_time) > (conf->nonce_lifetime-NEXTNONCE_DELTA)) {
0 commit comments