-*- coding: utf-8 -*-
Changes with Apache 2.2.3
+ *) mod_charset_lite: Bypass translation when the source and dest charsets
+ are the same. [Jeff Trawick]
+
Changes with Apache 2.2.2
*) mod_deflate: work correctly in an internal redirect
PATCHES ACCEPTED TO BACKPORT FROM TRUNK:
[ start all new proposals below, under PATCHES PROPOSED. ]
- * Remove odd DECLINED code from mod_charset_lite filter.
- http://svn.apache.org/viewcvs?rev=399665&view=rev
- +1 trawick, rpluem, niq
- niq: This is right, but the underlying behaviour (refuse to
- work in a proxy) is bad. There's a TODO.
-
- * mod_charset_lite: Don't go through the motions of translating if
- the source and dest charsets are the same.
- http://svn.apache.org/viewcvs?rev=399668&view=rev
- +1 trawick, rpluem, niq
-
PATCHES PROPOSED TO BACKPORT FROM TRUNK:
* Backport mod_authz_dbd (it's had some testing now)
if (!strncmp(r->filename, "gone:", 5)) return DECLINED;
if (!strncmp(r->filename, "passthrough:", 12)) return DECLINED;
if (!strncmp(r->filename, "forbidden:", 10)) return DECLINED;
+ /* no translation when server and network charsets are set to the same value */
+ if (!strcasecmp(dc->charset_source, dc->charset_default)) return DECLINED;
mime_type = r->content_type ? r->content_type : ap_default_type(r);
}
}
- /* catch proxy requests */
- if (f->r->proxyreq) return DECLINED;
-
/* Opening the output translation (this used to be done in the fixup hook,
* but that was too early: a subsequent type modification, e.g., by a
* CGI script, would go unnoticed. Now we do it in the filter itself.)