diff --git a/src/node_http_common-inl.h b/src/node_http_common-inl.h index 1bc7b46d63a827..d63cdf79a4b468 100644 --- a/src/node_http_common-inl.h +++ b/src/node_http_common-inl.h @@ -123,9 +123,9 @@ NgHeader::NgHeader( template NgHeader::NgHeader(NgHeader&& other) noexcept - : token_(other.token_), - name_(std::move(other.name_)), + : name_(std::move(other.name_)), value_(std::move(other.value_)), + token_(other.token_), flags_(other.flags_) { other.token_ = -1; other.flags_ = 0;