diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2004-06-15 17:47:16 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2004-06-15 17:47:16 +0000 |
| commit | d09f7a1e9aa5816493e2fef93074383d95140c13 (patch) | |
| tree | 4aeabb503cda16fa45c78a56881c327e97de6d12 /src/http | |
| parent | 87350f269da4d82f2436aac91ae87fbd37ca6c16 (diff) | |
| download | nginx-d09f7a1e9aa5816493e2fef93074383d95140c13.tar.gz nginx-d09f7a1e9aa5816493e2fef93074383d95140c13.tar.bz2 | |
nginx-0.0.7-2004-06-15-21:47:16 import
Diffstat (limited to 'src/http')
| -rw-r--r-- | src/http/modules/ngx_http_gzip_filter.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/http/modules/ngx_http_gzip_filter.c b/src/http/modules/ngx_http_gzip_filter.c index cc7ba9c28..0e02015ca 100644 --- a/src/http/modules/ngx_http_gzip_filter.c +++ b/src/http/modules/ngx_http_gzip_filter.c @@ -668,7 +668,15 @@ static int ngx_http_gzip_body_filter(ngx_http_request_t *r, ngx_chain_t *in) trailer->crc32 = ctx->crc32; trailer->zlen = ctx->zin; #else - /* STUB */ Oops ! + trailer->crc32[0] = ctx->crc32 & 0xff; + trailer->crc32[1] = (ctx->crc32 >> 8) & 0xff; + trailer->crc32[2] = (ctx->crc32 >> 16) & 0xff; + trailer->crc32[3] = (ctx->crc32 >> 24) & 0xff; + + trailer->zlen[0] = ctx->zin & 0xff; + trailer->zlen[1] = (ctx->zin >> 8) & 0xff; + trailer->zlen[2] = (ctx->zin >> 16) & 0xff; + trailer->zlen[3] = (ctx->zin >> 24) & 0xff; #endif ctx->zstream.avail_in = 0; |
