+#endif /* def __OS2__ */
#include "project.h"
#include "filters.h"
#include "encode.h"
-#include "jcc.h"
-#include "showargs.h"
#include "parsers.h"
#include "ssplit.h"
-#include "gateway.h"
-#include "jbsockets.h"
#include "errlog.h"
#include "jbsockets.h"
+#include "miscutil.h"
+#include "actions.h"
+#include "cgi.h"
+#include "list.h"
+#include "deanimate.h"
+#include "urlmatch.h"
+#include "loaders.h"
#ifdef _WIN32
#include "win32.h"
@@ -157,62 +643,10 @@ const char filters_h_rcs[] = FILTERS_H_VERSION;
*/
#define ijb_isdigit(__X) isdigit((int)(unsigned char)(__X))
+static jb_err remove_chunked_transfer_coding(char *buffer, size_t *size);
+static jb_err prepare_for_filtering(struct client_state *csp);
-static const char CBLOCK[] =
-#ifdef AMIGA
- "HTTP/1.0 403 Request for blocked URL\n"
-#else /* ifndef AMIGA */
- "HTTP/1.0 202 Request for blocked URL\n"
-#endif /* ndef AMIGA */
- "Pragma: no-cache\n"
- "Last-Modified: Thu Jul 31, 1997 07:42:22 pm GMT\n"
- "Expires: Thu Jul 31, 1997 07:42:22 pm GMT\n"
- "Content-Type: text/html\n\n"
- "\n"
- "\n"
- "Internet Junkbuster: Request for blocked URL\n"
- "\n"
- WHITEBG
- ""
- BANNER
- "
\n"
- "Your request for %s%s
\n"
- "was blocked because it matches the following pattern "
- "in the blockfile: %s\n
"
-#ifdef FORCE_LOAD
- "Go there anyway.
"
-#endif /* def FORCE_LOAD */
- "\n"
- "