#include "httpd.h" /* vim:noet:ts=4 */ #include "http_config.h" #include "http_core.h" #include "http_protocol.h" #include "http_request.h" //#include "apr_compat.h" #include "apr_strings.h" #include "apr_reslist.h" #include "http_log.h" #include "util_filter.h" #include "opensrf/string_array.h" #include "opensrf/utils.h" #include "opensrf/log.h" #include #include #include #define APACHE_TOOLS_MAX_POST_SIZE 10485760 /* 10 MB */ #define MODULE_NAME "idlchunk_module" /* Define the config defaults here */ #define MODIDLCHUNK_CONFIG_STRIP_COMMENTS "IDLChunkStripComments" #define MODIDLCHUNK_CONFIG_CONTENT_TYPE "IDLChunkContentType" #define MODIDLCHUNK_CONFIG_CONTENT_TYPE_DEFAULT "text/html" #define MODIDLCHUNK_CONFIG_STRIP_PI "IDLChunkStripPI" #define MODIDLCHUNK_CONFIG_DOCTYPE "IDLChunkDoctype" #define MODIDLCHUNK_CONFIG_STRIP_DOCTYPE "IDLChunkStripDoctype" #define MODIDLCHUNK_CONFIG_ESCAPE_SCRIPT "IDLChunkEscapeScript" module AP_MODULE_DECLARE_DATA idlchunk_module; int idlChunkInScript = 0; /* are we in the middle of a