aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Liebender <christoph.liebender@posteo.de>2024-08-15 11:36:30 +0200
committerOmar Polo <op@omarpolo.com>2024-08-18 10:20:16 +0200
commita3cdb8c5d65098d6c5af8acd8412d78bd3c45817 (patch)
treeb4615010d8ff51e898a3dd551d94001074b685a7
parent0cf61ffcaf5321ee5888f5c1d247a1c383ff75fd (diff)
fix: send port as SERVER_PORT
-rw-r--r--fcgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fcgi.c b/fcgi.c
index 2219ecb..5a1e4e4 100644
--- a/fcgi.c
+++ b/fcgi.c
@@ -415,7 +415,7 @@ fcgi_req(struct client *c, struct location *loc)
else
strlcpy(path, stripped, sizeof(path));
- port = c->iri.host;
+ port = c->iri.port;
if (port == NULL || *port == '\0')
port = "1965";