Mercurial > hg > nginx
comparison src/http/ngx_http_header_filter_module.c @ 1774:68d21fd1dc64
use %*s format
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 24 Dec 2007 17:05:31 +0000 |
parents | 89ebc599c325 |
children | d457a1576532 |
comparison
equal
deleted
inserted
replaced
1773:d85879105d35 | 1774:68d21fd1dc64 |
---|---|
519 | 519 |
520 b->last = ngx_copy(b->last, header[i].value.data, header[i].value.len); | 520 b->last = ngx_copy(b->last, header[i].value.data, header[i].value.len); |
521 *b->last++ = CR; *b->last++ = LF; | 521 *b->last++ = CR; *b->last++ = LF; |
522 } | 522 } |
523 | 523 |
524 #if (NGX_DEBUG) | 524 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, |
525 *b->last = '\0'; | 525 "%*s\n", (size_t) (b->last - b->pos), b->pos); |
526 ngx_log_debug1(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, "%s\n", b->pos); | |
527 #endif | |
528 | 526 |
529 /* the end of HTTP header */ | 527 /* the end of HTTP header */ |
530 *b->last++ = CR; *b->last++ = LF; | 528 *b->last++ = CR; *b->last++ = LF; |
531 | 529 |
532 r->header_size = b->last - b->pos; | 530 r->header_size = b->last - b->pos; |