src/server/safs/cgiutils.c

changeset 122
6467dbb3e887
parent 121
a881dc866e23
child 126
631aaa01b2b5
equal deleted inserted replaced
121:a881dc866e23 122:6467dbb3e887
310 char *host; 310 char *host;
311 uint16_t port; 311 uint16_t port;
312 http_get_scheme_host_port(sn, rq, &scheme, &host, &port); 312 http_get_scheme_host_port(sn, rq, &scheme, &host, &port);
313 char portstr[8]; 313 char portstr[8];
314 snprintf(portstr, 8, "%" PRIu16, (int)port); 314 snprintf(portstr, 8, "%" PRIu16, (int)port);
315 env[x++] = util_env_str("SERVER_PORT", host); 315 env[x++] = util_env_str("SERVER_PORT", portstr);
316 env[x++] = util_env_str("SERVER_NAME", portstr); 316 env[x++] = util_env_str("SERVER_NAME", host);
317 317
318 //t = http_uri2url_dynamic("","",sn,rq); 318 //t = http_uri2url_dynamic("","",sn,rq);
319 //env[x++] = util_env_str("SERVER_URL", t); 319 //env[x++] = util_env_str("SERVER_URL", t);
320 //FREE(t); 320 //FREE(t);
321 321

mercurial