Skip to content

Commit

Permalink
correcting sstream reset
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-chrismc committed May 21, 2020
1 parent cb9165b commit 8ba9dc1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/jwt-cpp/jwt.h
Original file line number Diff line number Diff line change
Expand Up @@ -1420,6 +1420,7 @@ namespace jwt {
std::ostringstream iss;
iss << value_type(obj_header);
std::string header = encode(iss.str());
iss.str(std::string());
iss.clear();
iss << value_type(obj_payload);
std::string payload = encode(iss.str());
Expand Down

0 comments on commit 8ba9dc1

Please sign in to comment.