transport/server: Fix response::write_byte()

The last two arguments to vector::insert() are flipped which causes us
to fill the vector with 'b' bytes of value 0x01. Switch to the single
element insertion variant to fix the issue.

Spotted by dtest push notification tests.

Signed-off-by: Pekka Enberg <penberg@cloudius-systems.com>
This commit is contained in:
Pekka Enberg
2015-08-06 15:22:56 +03:00
parent 92c813d562
commit 096e02469e

View File

@@ -1246,7 +1246,7 @@ sstring cql_server::response::make_frame(uint8_t version, size_t length)
void cql_server::response::write_byte(uint8_t b)
{
_body.insert(_body.end(), b, 1);
_body.insert(_body.end(), b);
}
void cql_server::response::write_int(int32_t n)