nxt_http_error.c (1218:c9dac3038baf) nxt_http_error.c (1270:9efa309be18b)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 43 unchanged lines hidden (view full) ---

52
53 nxt_http_field_set(content_type, "Content-Type", "text/html");
54
55 r->resp.content_length = NULL;
56 r->resp.content_length_n = NXT_HTTP_ERROR_LEN;
57
58 r->state = &nxt_http_request_send_error_body_state;
59
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>

--- 43 unchanged lines hidden (view full) ---

52
53 nxt_http_field_set(content_type, "Content-Type", "text/html");
54
55 r->resp.content_length = NULL;
56 r->resp.content_length_n = NXT_HTTP_ERROR_LEN;
57
58 r->state = &nxt_http_request_send_error_body_state;
59
60 nxt_http_request_header_send(task, r, nxt_http_request_send_error_body);
61
60 nxt_http_request_header_send(task, r,
61 nxt_http_request_send_error_body, NULL);
62 return;
63
64fail:
65
66 nxt_http_request_error_handler(task, r, r->proto.any);
67}
68
69

--- 35 unchanged lines hidden ---
62 return;
63
64fail:
65
66 nxt_http_request_error_handler(task, r, r->proto.any);
67}
68
69

--- 35 unchanged lines hidden ---