Skip to content

Instantly share code, notes, and snippets.

Created December 19, 2012 14:47
Show Gist options
  • Save anonymous/4337158 to your computer and use it in GitHub Desktop.
Save anonymous/4337158 to your computer and use it in GitHub Desktop.
Diff for httpd-2.2.15-15.el6.centos.src.rpm Alters ./modules/filters/mod_charset_lite.c so that it would work with proxied traffic, and with application/* content type - specifically needed for application/json
--- mod_charset_lite.c 2012-12-19 15:45:22.612094626 +0100
+++ mod_charset_lite-fixed.c 2012-12-19 15:45:53.010972649 +0100
@@ -239,9 +239,9 @@
}
/* catch proxy requests */
- if (r->proxyreq) {
+ /*if (r->proxyreq) {
return DECLINED;
- }
+ }*/
/* mod_rewrite indicators */
if (r->filename
@@ -831,6 +831,7 @@
strcmp(mime_type, DIR_MAGIC_TYPE) == 0 ||
#endif
strncasecmp(mime_type, "message/", 8) == 0 ||
+ strncasecmp(mime_type, "application/", 12) == 0 ||
dc->force_xlate == FX_FORCE) {
rv = apr_xlate_open(&ctx->xlate,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment