Skip to content

Commit

Permalink
empty messages could not be consumed or get, this has now been fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
EmielBruijntjes committed Aug 1, 2014
1 parent 7956d70 commit b97222c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/basicheaderframe.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,11 +119,14 @@ class BasicHeaderFrame : public HeaderFrame
if (!message) return false;

// store size
message->setBodySize(bodySize());
message->setBodySize(_bodySize);

// and copy the meta data
message->set(_metadata);

// for empty bodies we're ready now
if (_bodySize == 0) channel->reportMessage();

// done
return true;
}
Expand Down

0 comments on commit b97222c

Please sign in to comment.