Remove an incorrect assertion in server_content_type()
authorFabian Keil <fk@fabiankeil.de>
Fri, 4 Jan 2013 12:19:47 +0000 (12:19 +0000)
committerFabian Keil <fk@fabiankeil.de>
Fri, 4 Jan 2013 12:19:47 +0000 (12:19 +0000)
While it was supposed "to see if we already parsed another
Content-Type header" it actually only verified that at least
one Content-Type headers exists.

This is guaranteed to be true as otherwise the function
wouldn't be executed by sed().

parsers.c

index 47be919..86d7b79 100644 (file)
--- a/parsers.c
+++ b/parsers.c
@@ -1,4 +1,4 @@
-const char parsers_rcs[] = "$Id: parsers.c,v 1.271 2012/12/07 12:50:17 fabiankeil Exp $";
+const char parsers_rcs[] = "$Id: parsers.c,v 1.272 2012/12/09 12:27:01 fabiankeil Exp $";
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
 /*********************************************************************
  *
  * File        :  $Source: /cvsroot/ijbswa/current/parsers.c,v $
@@ -2105,12 +2105,6 @@ static jb_err server_content_type(struct client_state *csp, char **header)
    /* Remove header if it isn't the first Content-Type header */
    if ((csp->content_type & CT_DECLARED))
    {
    /* Remove header if it isn't the first Content-Type header */
    if ((csp->content_type & CT_DECLARED))
    {
-     /*
-      * Another, slightly slower, way to see if
-      * we already parsed another Content-Type header.
-      */
-      assert(NULL != get_header_value(csp->headers, "Content-Type:"));
-
       log_error(LOG_LEVEL_ERROR,
          "Multiple Content-Type headers. Removing and ignoring: \'%s\'",
          *header);
       log_error(LOG_LEVEL_ERROR,
          "Multiple Content-Type headers. Removing and ignoring: \'%s\'",
          *header);