Skip to content
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
[Squash] nits
Co-Authored-By: Anna Henningsen <[email protected]>
  • Loading branch information
jasnell and addaleax authored Mar 4, 2020
commit d69f2b4e3ed4b6fb57de7723963f1917538ca3a2
4 changes: 2 additions & 2 deletions src/node_http2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2188,8 +2188,8 @@ bool Http2Stream::AddHeader(nghttp2_rcbuf* name,
return false;
}

if (this->statistics_.first_header == 0)
this->statistics_.first_header = uv_hrtime();
if (statistics_.first_header == 0)
statistics_.first_header = uv_hrtime();

current_headers_.push_back(std::move(header));

Expand Down
2 changes: 1 addition & 1 deletion src/node_http_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ class NgRcBufPointer : public MemoryRetainer {
operator bool() const { return buf_ != nullptr; }
bool IsStatic() const { return T::is_static(buf_) != 0; }
void SetInternalizable() { internalizable_ = true; }
bool IsInternalizable() { return internalizable_; }
bool IsInternalizable() const { return internalizable_; }

static inline bool IsZeroLength(rcbuf_t* buf) {
if (buf == nullptr)
Expand Down