httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wr...@apache.org
Subject cvs commit: httpd-2.0/modules/dav/main mod_dav.c mod_dav.h
Date Tue, 31 Jul 2001 17:01:34 GMT
wrowe       01/07/31 10:01:34

  Modified:    modules/dav/main mod_dav.c mod_dav.h
  Log:
    Clean up mod_dav error reporting to HTML/XHTML cross-compliance.
  
  Revision  Changes    Path
  1.58      +5 -6      httpd-2.0/modules/dav/main/mod_dav.c
  
  Index: mod_dav.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/mod_dav.c,v
  retrieving revision 1.57
  retrieving revision 1.58
  diff -u -r1.57 -r1.58
  --- mod_dav.c	2001/07/23 16:16:29	1.57
  +++ mod_dav.c	2001/07/31 17:01:34	1.58
  @@ -370,12 +370,11 @@
   	      DAV_RESPONSE_BODY_2,
   	      &r->status_line[4],
   	      DAV_RESPONSE_BODY_3,
  -	      NULL);
  -
  -    ap_rputs(body, r);
  -
  -    ap_rputs(ap_psignature("\n<P><HR>\n", r), r);
  -    ap_rputs(DAV_RESPONSE_BODY_4, r);
  +              body,
  +	      DAV_RESPONSE_BODY_4,
  +              ap_psignature("<hr />\n", r),
  +	      DAV_RESPONSE_BODY_5,
  +              NULL);
   
       /* the response has been sent. */
       /*
  
  
  
  1.51      +5 -4      httpd-2.0/modules/dav/main/mod_dav.h
  
  Index: mod_dav.h
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/modules/dav/main/mod_dav.h,v
  retrieving revision 1.50
  retrieving revision 1.51
  diff -u -r1.50 -r1.51
  --- mod_dav.h	2001/05/05 11:06:27	1.50
  +++ mod_dav.h	2001/07/31 17:01:34	1.51
  @@ -83,10 +83,11 @@
   
   #define DAV_READ_BLOCKSIZE	2048	/* used for reading input blocks */
   
  -#define DAV_RESPONSE_BODY_1	"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<HTML><HEAD>\n<TITLE>"
  -#define DAV_RESPONSE_BODY_2	"</TITLE>\n</HEAD><BODY>\n<H1>"
  -#define DAV_RESPONSE_BODY_3	"</H1>\n"
  -#define DAV_RESPONSE_BODY_4	"</BODY></HTML>\n"
  +#define DAV_RESPONSE_BODY_1	"<!DOCTYPE HTML PUBLIC \"-//IETF//DTD HTML 2.0//EN\">\n<html><head>\n<title>"
  +#define DAV_RESPONSE_BODY_2	"</title>\n</head><body>\n<h1>"
  +#define DAV_RESPONSE_BODY_3	"</h1>\n<p>"
  +#define DAV_RESPONSE_BODY_4	"</p>\n"
  +#define DAV_RESPONSE_BODY_5	"</body></html>\n"
   
   #define DAV_DO_COPY		0
   #define DAV_DO_MOVE		1
  
  
  

Mime
View raw message