nxt_http_error.c (703:2d536dde84d2) nxt_http_error.c (768:d1f741314614)
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>
9
10
11static void nxt_http_request_send_error_body(nxt_task_t *task, void *r,
12 void *data);
13
14
15static const nxt_http_request_state_t nxt_http_request_send_error_body_state;
16
17
18static const char error[] =
1
2/*
3 * Copyright (C) Igor Sysoev
4 * Copyright (C) NGINX, Inc.
5 */
6
7#include <nxt_router.h>
8#include <nxt_http.h>
9
10
11static void nxt_http_request_send_error_body(nxt_task_t *task, void *r,
12 void *data);
13
14
15static const nxt_http_request_state_t nxt_http_request_send_error_body_state;
16
17
18static const char error[] =
19 "<html><head><title>Error</title><head>"
19 "<html><head><title>Error</title></head>"
20 "<body>Error.</body></html>\r\n";
21
22
23void
24nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
25 nxt_http_status_t status)
26{
27 nxt_http_field_t *content_type;

--- 75 unchanged lines hidden ---
20 "<body>Error.</body></html>\r\n";
21
22
23void
24nxt_http_request_error(nxt_task_t *task, nxt_http_request_t *r,
25 nxt_http_status_t status)
26{
27 nxt_http_field_t *content_type;

--- 75 unchanged lines hidden ---