From cb130c3e8fffdc9d68ebca891db46426bbfd5fd3 Mon Sep 17 00:00:00 2001 From: Garrett Rooney Date: Mon, 13 Feb 2006 02:34:26 +0000 Subject: [PATCH] Clean up some code in mod_dav. Submitted by: Dan Rall * 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 | 6 ------ 1 file changed, 6 deletions(-) diff --git a/modules/dav/main/mod_dav.c b/modules/dav/main/mod_dav.c index d1ca371393..562a3b04eb 100644 --- a/modules/dav/main/mod_dav.c +++ b/modules/dav/main/mod_dav.c @@ -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 -- 2.50.1