View | Details | Raw Unified | Return to bug 62186
Collapse All | Expand All

(-)modules/http/http_request.c (-1 / +6 lines)
Lines 187-193 Link Here
187
            apr_table_setn(r->headers_out, "Location", custom_response);
187
            apr_table_setn(r->headers_out, "Location", custom_response);
188
        }
188
        }
189
        else if (custom_response[0] == '/') {
189
        else if (custom_response[0] == '/') {
190
            const char *error_notes;
190
            const char *error_notes, *original_method;
191
            int original_method_number;
191
            r->no_local_copy = 1;       /* Do NOT send HTTP_NOT_MODIFIED for
192
            r->no_local_copy = 1;       /* Do NOT send HTTP_NOT_MODIFIED for
192
                                         * error documents! */
193
                                         * error documents! */
193
            /*
194
            /*
Lines 205-213 Link Here
205
                                             "error-notes")) != NULL) {
206
                                             "error-notes")) != NULL) {
206
                apr_table_setn(r->subprocess_env, "ERROR_NOTES", error_notes);
207
                apr_table_setn(r->subprocess_env, "ERROR_NOTES", error_notes);
207
            }
208
            }
209
            original_method = r->method;
210
            original_method_number = r->method_number;
208
            r->method = "GET";
211
            r->method = "GET";
209
            r->method_number = M_GET;
212
            r->method_number = M_GET;
210
            ap_internal_redirect(custom_response, r);
213
            ap_internal_redirect(custom_response, r);
214
            r->method = original_method;
215
            r->method_number = original_method_number;
211
            return;
216
            return;
212
        }
217
        }
213
        else {
218
        else {

Return to bug 62186