fix case when URL has no port, but has ":" in URI part,
the bug has been introduced in r2204
Igor Sysoev
13 years ago
263 | 263 | |
264 | 264 | port = ngx_strlchr(host, last, ':'); |
265 | 265 | |
266 | uri = ngx_strlchr(port ? port : host, last, '/'); | |
266 | uri = ngx_strlchr(host, last, '/'); | |
267 | 267 | |
268 | 268 | if (uri) { |
269 | 269 | if (u->listen || !u->uri_part) { |
275 | 275 | u->uri.data = uri; |
276 | 276 | |
277 | 277 | last = uri; |
278 | ||
279 | if (uri < port) { | |
280 | port = NULL; | |
281 | } | |
278 | 282 | } |
279 | 283 | |
280 | 284 | if (port) { |