comparison src/http/ngx_http_header_filter.c @ 423:fda5987b188d

nginx-0.0.10-2004-09-13-20:18:09 import
author Igor Sysoev <igor@sysoev.ru>
date Mon, 13 Sep 2004 16:18:09 +0000
parents b9bd635011de
children 694cd6cdb714
comparison
equal deleted inserted replaced
422:edaefb2a20fc 423:fda5987b188d
204 r->headers_out.location->key.len = 0; 204 r->headers_out.location->key.len = 0;
205 len += sizeof("Location: http://") - 1 205 len += sizeof("Location: http://") - 1
206 + r->server_name->len + r->headers_out.location->value.len + 2; 206 + r->server_name->len + r->headers_out.location->value.len + 2;
207 207
208 if (r->port != 80) { 208 if (r->port != 80) {
209 len += r->port_name->len; 209 len += r->port_text->len;
210 } 210 }
211 } 211 }
212 212
213 if (r->headers_out.last_modified && r->headers_out.last_modified->key.len) { 213 if (r->headers_out.last_modified && r->headers_out.last_modified->key.len) {
214 len += r->headers_out.last_modified->key.len 214 len += r->headers_out.last_modified->key.len
323 b->last = ngx_cpymem(b->last, "Location: http://", 323 b->last = ngx_cpymem(b->last, "Location: http://",
324 sizeof("Location: http://") - 1); 324 sizeof("Location: http://") - 1);
325 b->last = ngx_cpymem(b->last, r->server_name->data, 325 b->last = ngx_cpymem(b->last, r->server_name->data,
326 r->server_name->len); 326 r->server_name->len);
327 if (r->port != 80) { 327 if (r->port != 80) {
328 b->last = ngx_cpymem(b->last, r->port_name->data, 328 b->last = ngx_cpymem(b->last, r->port_text->data,
329 r->port_name->len); 329 r->port_text->len);
330 } 330 }
331 331
332 b->last = ngx_cpymem(b->last, r->headers_out.location->value.data, 332 b->last = ngx_cpymem(b->last, r->headers_out.location->value.data,
333 r->headers_out.location->value.len); 333 r->headers_out.location->value.len);
334 334