is rejected by get_header(). Regression (re?)introduced
in r1.143 by yours truly.
- Move ACTION_VANILLA_WAFER handling into parsers.c's
client_cookie_adder() to make sure send-vanilla-wafer can be
controlled through tags (and thus regression-tested).
-const char jcc_rcs[] = "$Id: jcc.c,v 1.150 2007/09/28 16:39:29 fabiankeil Exp $";
+const char jcc_rcs[] = "$Id: jcc.c,v 1.151 2007/09/29 10:21:16 fabiankeil Exp $";
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
/*********************************************************************
*
* File : $Source: /cvsroot/ijbswa/current/jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
*
* Revisions :
* $Log: jcc.c,v $
+ * Revision 1.151 2007/09/29 10:21:16 fabiankeil
+ * - Move get_filter_function() from jcc.c to filters.c
+ * so the filter functions can be static.
+ * - Don't bother filtering body-less responses.
+ *
* Revision 1.150 2007/09/28 16:39:29 fabiankeil
* Execute content filters through execute_content_filter().
*
* Revision 1.150 2007/09/28 16:39:29 fabiankeil
* Execute content filters through execute_content_filter().
*
int received_hup_signal = 0;
#endif /* defined unix */
int received_hup_signal = 0;
#endif /* defined unix */
-/* The vanilla wafer. */
-static const char VANILLA_WAFER[] =
- "NOTICE=TO_WHOM_IT_MAY_CONCERN_"
- "Do_not_send_me_any_copyrighted_information_other_than_the_"
- "document_that_I_am_requesting_or_any_of_its_necessary_components._"
- "In_particular_do_not_send_me_any_cookies_that_"
- "are_subject_to_a_claim_of_copyright_by_anybody._"
- "Take_notice_that_I_refuse_to_be_bound_by_any_license_condition_"
- "(copyright_or_otherwise)_applying_to_any_cookie._";
-
/* HTTP snipplets. */
static const char CSUCCEED[] =
"HTTP/1.0 200 Connection established\n"
/* HTTP snipplets. */
static const char CSUCCEED[] =
"HTTP/1.0 200 Connection established\n"
} while ((NULL != req) && ('\0' == *req));
} while ((NULL != req) && ('\0' == *req));
+ if ((NULL != req) && ('\0' != *req))
{
/* Request received. Validate and parse it. */
{
/* Request received. Validate and parse it. */
list_append_list_unique(csp->headers, headers);
destroy_list(headers);
list_append_list_unique(csp->headers, headers);
destroy_list(headers);
- /*
- * If the user has not supplied any wafers, and the user has not
- * told us to suppress the vanilla wafer, then send the vanilla wafer.
- */
- if (list_is_empty(csp->action->multi[ACTION_MULTI_WAFER])
- && ((csp->action->flags & ACTION_VANILLA_WAFER) != 0))
- {
- enlist(csp->action->multi[ACTION_MULTI_WAFER], VANILLA_WAFER);
- }
-
err = sed(client_patterns, add_client_headers, csp);
if (JB_ERR_OK != err)
{
err = sed(client_patterns, add_client_headers, csp);
if (JB_ERR_OK != err)
{