lol

Sat, 29 Oct 2016 20:22:32 +0200

author
Olaf Wintermann <olaf.wintermann@gmail.com>
date
Sat, 29 Oct 2016 20:22:32 +0200
changeset 122
6467dbb3e887
parent 121
a881dc866e23
child 123
9c639e4941cf

lol

src/server/safs/cgiutils.c file | annotate | diff | comparison | revisions
--- a/src/server/safs/cgiutils.c	Sat Oct 29 20:02:26 2016 +0200
+++ b/src/server/safs/cgiutils.c	Sat Oct 29 20:22:32 2016 +0200
@@ -312,8 +312,8 @@
     http_get_scheme_host_port(sn, rq, &scheme, &host, &port);
     char portstr[8];
     snprintf(portstr, 8, "%" PRIu16, (int)port);
-    env[x++] = util_env_str("SERVER_PORT", host);
-    env[x++] = util_env_str("SERVER_NAME", portstr);
+    env[x++] = util_env_str("SERVER_PORT", portstr);
+    env[x++] = util_env_str("SERVER_NAME", host);
     
     //t = http_uri2url_dynamic("","",sn,rq);
     //env[x++] = util_env_str("SERVER_URL", t);

mercurial