diff options
author | Anna Henningsen <anna@addaleax.net> | 2019-03-05 04:16:06 +0300 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2020-04-06 03:06:37 +0300 |
commit | f54b5b2fe4731ca491f9a7284cf2c8042966ac22 (patch) | |
tree | 835e5d67bb16826b193a466792d7c1bf584905b6 /src/node_http_common.h | |
parent | 6576b9b9d0f3de931e5e867a7b4b43319b187955 (diff) |
src: move HTTP/2 state out of Environment
Moves state that is specific to HTTP/2 into the HTTP/2 implementation
as a cleanup.
PR-URL: https://github.com/nodejs/node/pull/32538
Reviewed-By: James M Snell <jasnell@gmail.com>
Diffstat (limited to 'src/node_http_common.h')
-rw-r--r-- | src/node_http_common.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/node_http_common.h b/src/node_http_common.h index 41b5f419d94..d2bdddd93f4 100644 --- a/src/node_http_common.h +++ b/src/node_http_common.h @@ -409,7 +409,7 @@ class NgRcBufPointer : public MemoryRetainer { NgRcBufPointer<T> ptr) { Environment* env = allocator->env(); if (ptr.IsStatic()) { - auto& static_str_map = env->isolate_data()->http_static_strs; + auto& static_str_map = env->isolate_data()->static_str_map; const char* header_name = reinterpret_cast<const char*>(ptr.data()); v8::Eternal<v8::String>& eternal = static_str_map[header_name]; if (eternal.IsEmpty()) { |