Commit ef1638b2 authored by Garrett Rooney's avatar Garrett Rooney
Browse files

Clean up some code in mod_dav.

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
parent 33fb57a0
Loading
Loading
Loading
Loading
+0 −6
Changes for modules/dav/main/mod_dav.c: 0 added lines, 6 removed lines.
Original line number Diff line number Diff line
@@ -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