Loading include/ap_compat.h +1 −0 Original line number Diff line number Diff line Loading @@ -7,5 +7,6 @@ /* redefine 1.3.x symbols to the new symbol names */ #define MODULE_VAR_EXPORT AP_MODULE_DECLARE_DATA #define ap_send_http_header(r) ; #endif /* APR_COMPAT_H */ modules/cache/mod_file_cache.c +0 −2 Original line number Diff line number Diff line Loading @@ -468,8 +468,6 @@ static int file_cache_handler(request_rec *r) r->clength = match->finfo.size; apr_table_setn(r->headers_out, "Content-Length", match->sizestr); ap_send_http_header(r); /* Call appropriate handler */ if (!r->header_only) { if (match->is_mmapped == TRUE) Loading modules/dav/main/mod_dav.c +4 −26 Original line number Diff line number Diff line Loading @@ -364,8 +364,6 @@ static int dav_error_response(request_rec *r, int status, const char *body) (void) ap_discard_request_body(r); /* begin the response now... */ ap_send_http_header(r); ap_rvputs(r, DAV_RESPONSE_BODY_1, r->status_line, Loading Loading @@ -416,10 +414,7 @@ static void dav_send_multistatus(request_rec *r, int status, r->status = status; r->content_type = DAV_XML_CONTENT_TYPE; /* Send all of the headers now */ ap_send_http_header(r); /* Send the actual multistatus response now... */ /* Send the headers and actual multistatus response now... */ ap_rputs(DAV_XML_HEADER DEBUG_CR "<D:multistatus xmlns:D=\"DAV:\"", r); Loading Loading @@ -847,7 +842,6 @@ static int dav_method_get(request_rec *r) } if (r->header_only) { ap_send_http_header(r); return DONE; } Loading @@ -871,9 +865,6 @@ static int dav_method_get(request_rec *r) return dav_handle_err(r, err, NULL); } /* all set. send the headers now. */ ap_send_http_header(r); buffer = apr_palloc(r->pool, DAV_READ_BLOCKSIZE); while (1) { apr_size_t amt; Loading Loading @@ -1739,8 +1730,7 @@ static int dav_method_options(request_rec *r) if (doc == NULL) { ap_set_content_length(r, 0); /* ### this will send a Content-Type. the default OPTIONS does not. */ ap_send_http_header(r); /* ### this sends a Content-Type. the default OPTIONS does not. */ /* ### the default (ap_send_http_options) returns OK, but I believe * ### that is because it is the default handler and nothing else Loading Loading @@ -1785,10 +1775,7 @@ static int dav_method_options(request_rec *r) r->status = HTTP_OK; r->content_type = DAV_XML_CONTENT_TYPE; /* send the headers */ ap_send_http_header(r); /* send the response body */ /* send the headers and response body */ ap_rputs(DAV_XML_HEADER DEBUG_CR "<D:options-response xmlns:D=\"DAV:\">" DEBUG_CR, r); Loading Loading @@ -2976,8 +2963,6 @@ static int dav_method_lock(request_rec *r) r->status = HTTP_OK; r->content_type = DAV_XML_CONTENT_TYPE; ap_send_http_header(r); ap_rputs(DAV_XML_HEADER DEBUG_CR "<D:prop xmlns:D=\"DAV:\">" DEBUG_CR, r); if (lock == NULL) ap_rputs("<D:lockdiscovery/>" DEBUG_CR, r); Loading Loading @@ -3201,7 +3186,6 @@ static int dav_method_vsn_control(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3478,7 +3462,6 @@ static int dav_method_uncheckout(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3708,7 +3691,6 @@ static int dav_method_set_target(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3893,7 +3875,6 @@ static int dav_method_label(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3948,10 +3929,7 @@ static int dav_method_report(request_rec *r) r->status = HTTP_OK; r->content_type = DAV_XML_CONTENT_TYPE; /* send the headers and start a timeout */ ap_send_http_header(r); /* send the response body */ /* send the headers and response body */ ap_rputs(DAV_XML_HEADER DEBUG_CR, r); for (t = hdr.first; t != NULL; t = t->next) Loading modules/experimental/mod_example.c +0 −1 Original line number Diff line number Diff line Loading @@ -514,7 +514,6 @@ static int example_handler(request_rec *r) * is broken. */ r->content_type = "text/html"; ap_send_http_header(r); /* * If we're only supposed to send header information (HEAD request), we're * already there. Loading modules/generators/mod_asis.c +0 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,6 @@ static int asis_handler(request_rec *r) return OK; } ap_send_http_header(r); if (!r->header_only) { ap_send_fd(f, r, 0, r->finfo.size, &nbytes); } Loading Loading
include/ap_compat.h +1 −0 Original line number Diff line number Diff line Loading @@ -7,5 +7,6 @@ /* redefine 1.3.x symbols to the new symbol names */ #define MODULE_VAR_EXPORT AP_MODULE_DECLARE_DATA #define ap_send_http_header(r) ; #endif /* APR_COMPAT_H */
modules/cache/mod_file_cache.c +0 −2 Original line number Diff line number Diff line Loading @@ -468,8 +468,6 @@ static int file_cache_handler(request_rec *r) r->clength = match->finfo.size; apr_table_setn(r->headers_out, "Content-Length", match->sizestr); ap_send_http_header(r); /* Call appropriate handler */ if (!r->header_only) { if (match->is_mmapped == TRUE) Loading
modules/dav/main/mod_dav.c +4 −26 Original line number Diff line number Diff line Loading @@ -364,8 +364,6 @@ static int dav_error_response(request_rec *r, int status, const char *body) (void) ap_discard_request_body(r); /* begin the response now... */ ap_send_http_header(r); ap_rvputs(r, DAV_RESPONSE_BODY_1, r->status_line, Loading Loading @@ -416,10 +414,7 @@ static void dav_send_multistatus(request_rec *r, int status, r->status = status; r->content_type = DAV_XML_CONTENT_TYPE; /* Send all of the headers now */ ap_send_http_header(r); /* Send the actual multistatus response now... */ /* Send the headers and actual multistatus response now... */ ap_rputs(DAV_XML_HEADER DEBUG_CR "<D:multistatus xmlns:D=\"DAV:\"", r); Loading Loading @@ -847,7 +842,6 @@ static int dav_method_get(request_rec *r) } if (r->header_only) { ap_send_http_header(r); return DONE; } Loading @@ -871,9 +865,6 @@ static int dav_method_get(request_rec *r) return dav_handle_err(r, err, NULL); } /* all set. send the headers now. */ ap_send_http_header(r); buffer = apr_palloc(r->pool, DAV_READ_BLOCKSIZE); while (1) { apr_size_t amt; Loading Loading @@ -1739,8 +1730,7 @@ static int dav_method_options(request_rec *r) if (doc == NULL) { ap_set_content_length(r, 0); /* ### this will send a Content-Type. the default OPTIONS does not. */ ap_send_http_header(r); /* ### this sends a Content-Type. the default OPTIONS does not. */ /* ### the default (ap_send_http_options) returns OK, but I believe * ### that is because it is the default handler and nothing else Loading Loading @@ -1785,10 +1775,7 @@ static int dav_method_options(request_rec *r) r->status = HTTP_OK; r->content_type = DAV_XML_CONTENT_TYPE; /* send the headers */ ap_send_http_header(r); /* send the response body */ /* send the headers and response body */ ap_rputs(DAV_XML_HEADER DEBUG_CR "<D:options-response xmlns:D=\"DAV:\">" DEBUG_CR, r); Loading Loading @@ -2976,8 +2963,6 @@ static int dav_method_lock(request_rec *r) r->status = HTTP_OK; r->content_type = DAV_XML_CONTENT_TYPE; ap_send_http_header(r); ap_rputs(DAV_XML_HEADER DEBUG_CR "<D:prop xmlns:D=\"DAV:\">" DEBUG_CR, r); if (lock == NULL) ap_rputs("<D:lockdiscovery/>" DEBUG_CR, r); Loading Loading @@ -3201,7 +3186,6 @@ static int dav_method_vsn_control(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3478,7 +3462,6 @@ static int dav_method_uncheckout(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3708,7 +3691,6 @@ static int dav_method_set_target(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3893,7 +3875,6 @@ static int dav_method_label(request_rec *r) /* no body */ ap_set_content_length(r, 0); ap_send_http_header(r); return DONE; } Loading Loading @@ -3948,10 +3929,7 @@ static int dav_method_report(request_rec *r) r->status = HTTP_OK; r->content_type = DAV_XML_CONTENT_TYPE; /* send the headers and start a timeout */ ap_send_http_header(r); /* send the response body */ /* send the headers and response body */ ap_rputs(DAV_XML_HEADER DEBUG_CR, r); for (t = hdr.first; t != NULL; t = t->next) Loading
modules/experimental/mod_example.c +0 −1 Original line number Diff line number Diff line Loading @@ -514,7 +514,6 @@ static int example_handler(request_rec *r) * is broken. */ r->content_type = "text/html"; ap_send_http_header(r); /* * If we're only supposed to send header information (HEAD request), we're * already there. Loading
modules/generators/mod_asis.c +0 −1 Original line number Diff line number Diff line Loading @@ -117,7 +117,6 @@ static int asis_handler(request_rec *r) return OK; } ap_send_http_header(r); if (!r->header_only) { ap_send_fd(f, r, 0, r->finfo.size, &nbytes); } Loading