summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-11-01 19:10:32 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-11-01 19:10:32 +0300
commitb7442743cfdf52185f293c770a883f1467776c5e (patch)
tree6e20f407ad3b4d086db0afdce095afe39df01df2
parent7a06fab9e32ca3ba91a566b065188c0b112d6c09 (diff)
downloadunit-b7442743cfdf52185f293c770a883f1467776c5e.tar.gz
unit-b7442743cfdf52185f293c770a883f1467776c5e.tar.bz2
Node.js: fixed typo in naming rawHeaders() method of request.
-rw-r--r--src/nodejs/unit-http/unit.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nodejs/unit-http/unit.cpp b/src/nodejs/unit-http/unit.cpp
index 5d7f15c0..97238834 100644
--- a/src/nodejs/unit-http/unit.cpp
+++ b/src/nodejs/unit-http/unit.cpp
@@ -464,7 +464,7 @@ Unit::create_headers(nxt_unit_request_info_t *req, napi_value request)
return status;
}
- status = napi_set_named_property(env_, request, "raw_headers", raw_headers);
+ status = napi_set_named_property(env_, request, "rawHeaders", raw_headers);
if (status != napi_ok) {
return status;
}