httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jerenkra...@apache.org
Subject cvs commit: httpd-2.0/server util_xml.c
Date Mon, 17 Feb 2003 18:49:45 GMT
jerenkrantz    2003/02/17 10:49:45

  Modified:    server   util_xml.c
  Log:
  Don't emit an error when there is no body.
  
  Revision  Changes    Path
  1.23      +5 -0      httpd-2.0/server/util_xml.c
  
  Index: util_xml.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/util_xml.c,v
  retrieving revision 1.22
  retrieving revision 1.23
  diff -u -u -r1.22 -r1.23
  --- util_xml.c	17 Feb 2003 06:12:42 -0000	1.22
  +++ util_xml.c	17 Feb 2003 18:49:45 -0000	1.23
  @@ -134,6 +134,11 @@
       /* tell the parser that we're done */
       status = apr_xml_parser_done(parser, pdoc);
       if (status) {
  +        /* Some parsers are stupid and return an error on blank documents. */
  +        if (!total_read) {
  +            *pdoc = NULL;
  +            return OK;
  +        }
           ap_log_rerror(APLOG_MARK, APLOG_ERR, 0, r,
                         "XML parser error (at end). status=%d", status);
           return HTTP_BAD_REQUEST;
  
  
  

Mime
View raw message