Klaus Demo nginx / 7c20ed8
fix uri part in "proxy_pass http://unix:...", the bug appeared in nginx-0.3.47 Igor Sysoev 15 years ago
1 changed file(s) with 5 addition(s) and 2 deletion(s). Raw diff Collapse all Expand all
238238 #if (NGX_HAVE_UNIX_DOMAIN)
239239
240240 u->type = NGX_PARSE_URL_UNIX;
241 u->uri = u->url;
242241
243242 p += 5;
244243 len -= 5;
244
245 u->uri.len = len;
246 u->uri.data = p;
245247
246248 if (u->uri_part) {
247249 for (i = 0; i < len; i++) {
284286
285287 u->peers->peer[0].sockaddr = (struct sockaddr *) saun;
286288 u->peers->peer[0].socklen = sizeof(struct sockaddr_un);
287 u->peers->peer[0].name = u->url;
289 u->peers->peer[0].name.len = len + 5;
290 u->peers->peer[0].name.data = u->url.data;
288291 u->peers->peer[0].uri_separator = ":";
289292
290293 u->host_header.len = sizeof("localhost") - 1;