Mercurial > hg > nginx
comparison src/http/ngx_http_header_filter_module.c @ 2768:e4a4c889694f
"port_in_redirect off" did not work
the bug had been appeared in r2530 and r2534
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 28 Apr 2009 06:20:12 +0000 |
parents | 7dc6ebe26e99 |
children | 507fc5ac9839 |
comparison
equal
deleted
inserted
replaced
2767:caa4f7dcf1e3 | 2768:e4a4c889694f |
---|---|
355 if (r->connection->ssl) | 355 if (r->connection->ssl) |
356 port = (port == 443) ? 0 : port; | 356 port = (port == 443) ? 0 : port; |
357 else | 357 else |
358 #endif | 358 #endif |
359 port = (port == 80) ? 0 : port; | 359 port = (port == 80) ? 0 : port; |
360 | |
361 } else { | |
362 port = 0; | |
360 } | 363 } |
361 | 364 |
362 if (port) { | 365 if (port) { |
363 len += sizeof(":65535") - 1; | 366 len += sizeof(":65535") - 1; |
364 } | 367 } |