Deleted
Added
nxt_http_error.c (768:d1f741314614) | nxt_http_error.c (906:0e35dd137f90) |
---|---|
1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_router.h> 8#include <nxt_http.h> --- 23 unchanged lines hidden (view full) --- 32 goto fail; 33 } 34 35 r->error = (status == NXT_HTTP_INTERNAL_SERVER_ERROR); 36 37 r->status = status; 38 39 r->resp.fields = nxt_list_create(r->mem_pool, 8, sizeof(nxt_http_field_t)); | 1 2/* 3 * Copyright (C) Igor Sysoev 4 * Copyright (C) NGINX, Inc. 5 */ 6 7#include <nxt_router.h> 8#include <nxt_http.h> --- 23 unchanged lines hidden (view full) --- 32 goto fail; 33 } 34 35 r->error = (status == NXT_HTTP_INTERNAL_SERVER_ERROR); 36 37 r->status = status; 38 39 r->resp.fields = nxt_list_create(r->mem_pool, 8, sizeof(nxt_http_field_t)); |
40 if (nxt_slow_path(r == NULL)) { | 40 if (nxt_slow_path(r->resp.fields == NULL)) { |
41 goto fail; 42 } 43 44 content_type = nxt_list_zero_add(r->resp.fields); 45 if (nxt_slow_path(content_type == NULL)) { 46 goto fail; 47 } 48 --- 54 unchanged lines hidden --- | 41 goto fail; 42 } 43 44 content_type = nxt_list_zero_add(r->resp.fields); 45 if (nxt_slow_path(content_type == NULL)) { 46 goto fail; 47 } 48 --- 54 unchanged lines hidden --- |