httpsrv: credentials of an earlier request not inherited by the next

This commit is contained in:
Vladimir Dubrovin committed 2026-11-13 17:16:25 +03:00
1 parent 57b94b209b
commit 796eff444a
2 files changed
+26

No files matched your search

+8
View File
@@ -1585,6 +1585,14 @@ void * httpsrvchild(struct clientparam *param)
r.lasthost = lasthost;
param->res = 0;
/* What the request brought belongs to it alone. A connection
can carry a client's request after another's, as a reverse
proxy reuses its upstreams, so the credentials and the host
of an earlier request decide nothing for this one. */
*param->hostname = 0;
*param->username = 0;
*param->password = 0;
answered = httpsrv_request(param, &r);
handoff = r.handoff;
param->climark = -1;