Mercurial > hg > nginx-vendor-0-7
comparison src/http/modules/ngx_http_xslt_filter_module.c @ 496:116d5de7cbb6 NGINX_0_7_60
nginx 0.7.60
*) Feature: the "updating" parameter in "proxy_cache_use_stale" and
"fastcgi_cache_use_stale" directives.
*) Feature: the "keepalive_requests" directive.
*) Bugfix: in open_file_cache and proxy/fastcgi cache interaction on
start up.
*) Bugfix: open_file_cache might cache open file descriptors too long.
*) Bugfix: the "If-Modified-Since", "If-Range", etc. client request
header lines were passed to backend while caching if no
"proxy_set_header" directive was used with any parameters.
*) Bugfix: the "Set-Cookie" and "P3P" response header lines were not
hidden while caching if no "proxy_hide_header/fastcgi_hide_header"
directives were used with any parameters.
*) Bugfix: the ngx_http_image_filter_module did not support GIF87a
format.
Thanks to Denis Ilyinyh.
*) Bugfix: nginx could not be built modules on Solaris 10 and early;
the bug had appeared in 0.7.56.
*) Bugfix: XLST filter did not work in subrequests.
*) Bugfix: in relative paths handling in nginx/Windows.
*) Bugfix: in proxy_store, fastcgi_store, proxy_cache, and
fastcgi_cache in nginx/Windows.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Mon, 15 Jun 2009 00:00:00 +0400 |
parents | 499474178a11 |
children | ed3d382670c7 |
comparison
equal
deleted
inserted
replaced
495:6d9fb4461113 | 496:116d5de7cbb6 |
---|---|
278 xmlFreeParserCtxt(ctx->ctxt); | 278 xmlFreeParserCtxt(ctx->ctxt); |
279 | 279 |
280 return ngx_http_xslt_send(r, ctx, NULL); | 280 return ngx_http_xslt_send(r, ctx, NULL); |
281 } | 281 } |
282 | 282 |
283 if (cl->buf->last_buf) { | 283 if (cl->buf->last_buf || cl->buf->last_in_chain) { |
284 | 284 |
285 ctx->doc = ctx->ctxt->myDoc; | 285 ctx->doc = ctx->ctxt->myDoc; |
286 | 286 |
287 #if (NGX_HTTP_XSLT_REUSE_DTD) | 287 #if (NGX_HTTP_XSLT_REUSE_DTD) |
288 ctx->doc->extSubset = NULL; | 288 ctx->doc->extSubset = NULL; |
425 | 425 |
426 ctx->ctxt = ctxt; | 426 ctx->ctxt = ctxt; |
427 ctx->request = r; | 427 ctx->request = r; |
428 } | 428 } |
429 | 429 |
430 err = xmlParseChunk(ctx->ctxt, (char *) b->pos, | 430 err = xmlParseChunk(ctx->ctxt, (char *) b->pos, (int) (b->last - b->pos), |
431 (int) (b->last - b->pos), b->last_buf); | 431 (b->last_buf) || (b->last_in_chain)); |
432 | 432 |
433 if (err == 0) { | 433 if (err == 0) { |
434 b->pos = b->last; | 434 b->pos = b->last; |
435 return NGX_OK; | 435 return NGX_OK; |
436 } | 436 } |
810 } | 810 } |
811 | 811 |
812 b->pos = buf; | 812 b->pos = buf; |
813 b->last = buf + len; | 813 b->last = buf + len; |
814 b->memory = 1; | 814 b->memory = 1; |
815 b->last_buf = 1; | |
816 | 815 |
817 if (encoding) { | 816 if (encoding) { |
818 r->headers_out.charset.len = ngx_strlen(encoding); | 817 r->headers_out.charset.len = ngx_strlen(encoding); |
819 r->headers_out.charset.data = encoding; | 818 r->headers_out.charset.data = encoding; |
820 } | 819 } |
821 | 820 |
822 if (r != r->main) { | 821 if (r != r->main) { |
823 return b; | 822 return b; |
824 } | 823 } |
824 | |
825 b->last_buf = 1; | |
825 | 826 |
826 if (type) { | 827 if (type) { |
827 len = ngx_strlen(type); | 828 len = ngx_strlen(type); |
828 | 829 |
829 r->headers_out.content_type_len = len; | 830 r->headers_out.content_type_len = len; |