if (rv != APR_SUCCESS)
return HTTP_NOT_FOUND;
+ apr_table_setn(r->headers_in, "CHXJ_IMG_CONV", "done");
try_count = CACHE_RETRY_COUNT;
do {
rv = apr_stat(&cache_st, tmpfile, APR_FINFO_MIN, r->pool);
WRN(r, "cache retry failure....");
WRN(r, "cache file was deleted...");
}
- apr_table_setn(r->headers_in, "CHXJ_IMG_CONV", "done");
DBG(r,"end chxj_img_conv_format");
apr_file_t *fout;
apr_size_t sendbyte;
char *contentLength;
- char *readData = NULL;
rv = apr_stat(&st, tmpfile, APR_FINFO_MIN, r->pool);
if (rv != APR_SUCCESS)
&& ! STRNCASEEQ('t','T',"text/xml", r->content_type, sizeof("text/xml")-1)
&& ! STRNCASEEQ('a','A',"application/xhtml+xml", r->content_type, sizeof("application/xhtml+xml")-1)
&& ! (dconf->image == CHXJ_IMG_ON
+ && ! apr_table_get(r->headers_in, "CHXJ_IMG_CONV")
&& STRNCASEEQ('i','I',"image/", r->content_type, sizeof("image/") -1)
&& ( STRCASEEQ('j','J',"jpeg", &r->content_type[6]) /* JPEG */
|| STRCASEEQ('j','J',"jp2", &r->content_type[6]) /* JPEG2000 */
|| STRCASEEQ('x','X',"x-png", &r->content_type[6]) /* PNG */
|| STRCASEEQ('g','G',"gif", &r->content_type[6])))) { /* GIF */
- DBG(r, "not convert content-type:[%s]", r->content_type);
+ DBG(r, "not convert content-type:[%s] dconf->image:[%d]", r->content_type, dconf->image);
if (entryp->action & CONVRULE_COOKIE_ON_BIT) {
DBG(r, "entryp->action == COOKIE_ON_BIT");
switch(spec->html_spec_type) {