mirror of
https://gitea.psi.ch/ELOG/elog.git
synced 2026-09-08 17:13:56 +00:00
Fixed small bug with 'X-Forwarded-Host:'
SVN revision: 922
This commit is contained in:
parent
cb11e96345
commit
4784d2c00b
@ -6,6 +6,9 @@
|
|||||||
Contents: Web server program for Electronic Logbook ELOG
|
Contents: Web server program for Electronic Logbook ELOG
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.357 2004/06/23 08:04:10 midas
|
||||||
|
Fixed small bug with 'X-Forwarded-Host:'
|
||||||
|
|
||||||
Revision 1.356 2004/06/23 08:00:26 midas
|
Revision 1.356 2004/06/23 08:00:26 midas
|
||||||
Extract and use 'X-Forwarded-Host:'
|
Extract and use 'X-Forwarded-Host:'
|
||||||
|
|
||||||
@ -17996,7 +17999,7 @@ void server_loop(int tcp_port, int daemon)
|
|||||||
|
|
||||||
/* extract X-Forwarded-Host, overwrite "Host:" if found */
|
/* extract X-Forwarded-Host, overwrite "Host:" if found */
|
||||||
if ((p = strstr(net_buffer, "X-Forwarded-Host:")) != NULL) {
|
if ((p = strstr(net_buffer, "X-Forwarded-Host:")) != NULL) {
|
||||||
p += 5;
|
p += 17;
|
||||||
while (*p && *p == ' ')
|
while (*p && *p == ' ')
|
||||||
p++;
|
p++;
|
||||||
strlcpy(http_host, p, sizeof(http_host));
|
strlcpy(http_host, p, sizeof(http_host));
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user