unit.cpp (828:b9f7635e6be2) unit.cpp (830:85a1832ad45c)
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "unit.h"
7
8#include <unistd.h>

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

459 }
460 }
461
462 status = napi_set_named_property(env_, request, "headers", headers);
463 if (status != napi_ok) {
464 return status;
465 }
466
1
2/*
3 * Copyright (C) NGINX, Inc.
4 */
5
6#include "unit.h"
7
8#include <unistd.h>

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

459 }
460 }
461
462 status = napi_set_named_property(env_, request, "headers", headers);
463 if (status != napi_ok) {
464 return status;
465 }
466
467 status = napi_set_named_property(env_, request, "raw_headers", raw_headers);
467 status = napi_set_named_property(env_, request, "rawHeaders", raw_headers);
468 if (status != napi_ok) {
469 return status;
470 }
471
472 p = (const char *) nxt_unit_sptr_get(&r->version);
473
474 status = napi_create_string_latin1(env_, p, r->version_length, &str);
475 if (status != napi_ok) {

--- 493 unchanged lines hidden ---
468 if (status != napi_ok) {
469 return status;
470 }
471
472 p = (const char *) nxt_unit_sptr_get(&r->version);
473
474 status = napi_create_string_latin1(env_, p, r->version_length, &str);
475 if (status != napi_ok) {

--- 493 unchanged lines hidden ---