if (SERF_BUCKET_READ_ERROR(rv)) {
ctx->rv = rv;
apr_atomic_dec32(&ctx->requests_outstanding);
+ DBG(ctx->r, "REQ[%X] end of s_handle_response() (ERROR)", (unsigned int)ctx->r);
return rv;
}
if (APR_STATUS_IS_EAGAIN(rv)) {
}
ctx->rv = APR_SUCCESS;
apr_atomic_dec32(&ctx->requests_outstanding);
- DBG(ctx->r, "end of s_handle_response()(NORMAL)");
+ DBG(ctx->r, "REQ[%X] end of s_handle_response()(NORMAL)", (unsigned int)ctx->r);
return APR_EOF;
}
if (APR_STATUS_IS_EAGAIN(rv)) {
- DBG(ctx->r, "end of s_handle_response() (EAGAIN)");
+ DBG(ctx->r, "REQ[%X] end of s_handle_response() (EAGAIN)", (unsigned int)ctx->r);
return rv;
}
}
mod_chxj_config *dconf;
chxjconvrule_entry *entryp;
- DBG(r,"start of chxj_convert() input:[%.*s]", (int)*len, *src);
+ DBG(r,"REQ[%X] start of chxj_convert() input:[%.*s]", (unsigned int)r, (int)*len, *src);
dst = apr_pstrcat(r->pool, (char *)*src, NULL);
dconf = chxj_get_module_config(r->per_dir_config, &chxj_module);
entryp = chxj_apply_convrule(r, dconf->convrules);
- if (!entryp || !(entryp->action & CONVRULE_ENGINE_ON_BIT))
+ if (!entryp || !(entryp->action & CONVRULE_ENGINE_ON_BIT)) {
+ DBG(r,"REQ[%X] end of chxj_convert()", (unsigned int)r);
return (char *)*src;
+ }
/*------------------------------------------------------------------------*/
else
user_agent = (char *)apr_table_get(r->headers_in, HTTP_USER_AGENT);
- DBG(r,"User-Agent:[%s]", user_agent);
- DBG(r,"content type is %s", r->content_type);
+ DBG(r,"REQ[%X] User-Agent:[%s]", (unsigned int)r, user_agent);
+ DBG(r,"REQ[%X] content type is %s", (unsigned int)r, r->content_type);
- if (! STRNCASEEQ('t','T', "text/html", r->content_type, sizeof("text/html")-1)
- && ! STRNCASEEQ('a','A', "application/xhtml+xml", r->content_type, sizeof("application/xhtml+xml")-1)) {
- DBG(r,"no convert. content type is %s", r->content_type);
- DBG(r,"end of chxj_convert()");
+ if ( ! STRNCASEEQ('t','T', "text/html", r->content_type, sizeof("text/html")-1)
+ && ! STRNCASEEQ('a','A', "application/xhtml+xml", r->content_type, sizeof("application/xhtml+xml")-1)) {
+ DBG(r,"REQ[%X] no convert. content type is %s", (unsigned int)r, r->content_type);
+ DBG(r,"REQ[%X] end of chxj_convert()", (unsigned int)r);
return (char *)*src;
}
*cookiep = cookie;
}
- DBG(r, "end of chxj_convert()");
+ DBG(r, "REQ[%X] end of chxj_convert()", (unsigned int)r);
return dst;
}