mirror of
https://github.com/allankoechke/jwt-cpp.git
synced 2026-12-03 17:26:18 +00:00
correcting sstream reset
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user