Add support for longer strings

This commit is contained in:
Lukas Joswiak 2021-01-13 16:42:36 -08:00
parent 5f5f487967
commit 34ad4b617b
1 changed files with 3 additions and 0 deletions

View File

@ -220,6 +220,9 @@ private:
} else if (size <= 255) {
request.write_byte(0xd9);
request.write_byte(static_cast<uint8_t>(size));
} else if (size <= 65535) {
request.write_byte(0xda);
request.write_byte(static_cast<uint16_t>(size));
} else {
// TODO: Add support for longer strings if necessary.
ASSERT(false);