comparison src/http/modules/ngx_http_image_filter_module.c @ 498:207ae3ff0444 NGINX_0_8_1

nginx 0.8.1 *) Feature: the "updating" parameter in "proxy_cache_use_stale" and "fastcgi_cache_use_stale" directives. *) 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.
author Igor Sysoev <http://sysoev.ru>
date Mon, 08 Jun 2009 00:00:00 +0400
parents f39b9e29530d
children 24b676623d4f
comparison
equal deleted inserted replaced
497:77fae36a61b3 498:207ae3ff0444
381 /* JPEG */ 381 /* JPEG */
382 382
383 return NGX_HTTP_IMAGE_JPEG; 383 return NGX_HTTP_IMAGE_JPEG;
384 384
385 } else if (p[0] == 'G' && p[1] == 'I' && p[2] == 'F' && p[3] == '8' 385 } else if (p[0] == 'G' && p[1] == 'I' && p[2] == 'F' && p[3] == '8'
386 && p[4] == '9' && p[5] == 'a') 386 && p[5] == 'a')
387 { 387 {
388 /* GIF */ 388 if (p[4] == '9' || p[4] == '7') {
389 389 /* GIF */
390 return NGX_HTTP_IMAGE_GIF; 390 return NGX_HTTP_IMAGE_GIF;
391 }
391 392
392 } else if (p[0] == 0x89 && p[1] == 'P' && p[2] == 'N' && p[3] == 'G' 393 } else if (p[0] == 0x89 && p[1] == 'P' && p[2] == 'N' && p[3] == 'G'
393 && p[4] == 0x0d && p[5] == 0x0a && p[6] == 0x1a && p[7] == 0x0a) 394 && p[4] == 0x0d && p[5] == 0x0a && p[6] == 0x1a && p[7] == 0x0a)
394 { 395 {
395 /* PNG */ 396 /* PNG */