]> granicus.if.org Git - apache/commitdiff
Clean up some code in mod_dav.
authorGarrett Rooney <rooneg@apache.org>
Mon, 13 Feb 2006 02:34:26 +0000 (02:34 +0000)
committerGarrett Rooney <rooneg@apache.org>
Mon, 13 Feb 2006 02:34:26 +0000 (02:34 +0000)
Submitted by: Dan Rall <dlr collab.net>

* modules/dav/main/mod_dav.c
  (dav_error_response, dav_error_response_tag): Remove redundant assignment
   of r->status_line which is handled by basic_http_header_check().

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@377292 13f79535-47bb-0310-9956-ffa450edef68

modules/dav/main/mod_dav.c

index d1ca3713938c81d8f6f67c3988fc3effe2b4c25b..562a3b04eba1c5b786369d2ca5bd3d2b499aa90d 100644 (file)
@@ -314,9 +314,6 @@ static int dav_error_response(request_rec *r, int status, const char *body)
 {
     r->status = status;
 
-    /* ### I really don't think this is needed; gotta test */
-    r->status_line = ap_get_status_line(status);
-
     ap_set_content_type(r, "text/html");
 
     /* begin the response now... */
@@ -348,9 +345,6 @@ static int dav_error_response_tag(request_rec *r,
 {
     r->status = err->status;
 
-    /* ### I really don't think this is needed; gotta test */
-    r->status_line = ap_get_status_line(err->status);
-
     ap_set_content_type(r, DAV_XML_CONTENT_TYPE);
 
     ap_rputs(DAV_XML_HEADER DEBUG_CR