Lines Matching refs:s
95 http_cgi_encode_varname (buffer * const b, const char * const restrict s, const size_t len, const i… in http_cgi_encode_varname() argument
102 if (len == 12 && buffer_eq_icase_ssn(s, "Content-Type", 12)) { in http_cgi_encode_varname()
112 const unsigned char c = s[i]; in http_cgi_encode_varname()
129 const char *s; in http_cgi_headers() local
142 s = r->target_orig.ptr; in http_cgi_headers()
149 if (n < len || 0 != memcmp(s, opts->strip_request_uri->ptr, len) in http_cgi_headers()
150 || s[len] != '/') in http_cgi_headers()
153 rc |= cb(vdata, CONST_STR_LEN("REQUEST_URI"), s+len, n-len); in http_cgi_headers()
227 s = get_http_version_name(r->http_version); in http_cgi_headers()
228 force_assert(s); in http_cgi_headers()
229 rc |= cb(vdata, CONST_STR_LEN("SERVER_PROTOCOL"), s, strlen(s)); in http_cgi_headers()
232 s = r->conf.server_tag->ptr; in http_cgi_headers()
236 s = ""; in http_cgi_headers()
239 rc |= cb(vdata, CONST_STR_LEN("SERVER_SOFTWARE"), s, n); in http_cgi_headers()
255 s = srv_sock->srv_token->ptr+n+1; in http_cgi_headers()
259 s = "0"; in http_cgi_headers()
262 rc |= cb(vdata, CONST_STR_LEN("SERVER_PORT"), s, n); in http_cgi_headers()
274 s = sock_addr_inet_ntop(&addrbuf, buf, sizeof(buf)); in http_cgi_headers()
275 if (s) in http_cgi_headers()
276 n = strlen(s); in http_cgi_headers()
278 s = ""; in http_cgi_headers()
281 s = ""; in http_cgi_headers()
284 s = srv_sock->srv_token->ptr; in http_cgi_headers()
289 s = ""; in http_cgi_headers()
292 rc |= cb(vdata, CONST_STR_LEN("SERVER_ADDR"), s, n); in http_cgi_headers()
296 s = r->server_name->ptr; in http_cgi_headers()
297 if (s[0] == '[') { in http_cgi_headers()
298 const char *colon = strstr(s, "]:"); in http_cgi_headers()
299 if (colon) n = (colon + 1) - s; in http_cgi_headers()
302 const char *colon = strchr(s, ':'); in http_cgi_headers()
303 if (colon) n = colon - s; in http_cgi_headers()
306 rc |= cb(vdata, CONST_STR_LEN("SERVER_NAME"), s, n); in http_cgi_headers()