Fix wrong length in pre-compiled responses

Length of "Unknown action" should be 14 and not 15
next
Sayan Nandan 4 years ago
parent e0baf0ac8d
commit 00730ee9d4
No known key found for this signature in database
GPG Key ID: C31EFD7DDA12AEE0

@ -36,7 +36,7 @@ pub mod groups {
pub static ref SERVER_ERR: Vec<u8> = "!1\n5\n".as_bytes().to_owned();
pub static ref OTHER_ERR_EMPTY: Vec<u8> = "!1\n6\n".as_bytes().to_owned();
pub static ref HEYA: Vec<u8> = "+4\nHEY!\n".as_bytes().to_owned();
pub static ref UNKNOWN_ACTION: Vec<u8> = "!15\nUnknown action\n".as_bytes().to_owned();
pub static ref UNKNOWN_ACTION: Vec<u8> = "!14\nUnknown action\n".as_bytes().to_owned();
}
}
@ -54,7 +54,7 @@ pub mod fresp {
pub static ref R_SERVER_ERR: Vec<u8> = "#2\n*1\n#2\n&1\n!1\n5\n".as_bytes().to_owned();
pub static ref R_OTHER_ERR_EMPTY: Vec<u8> = "#2\n*1\n#2\n&1\n!1\n6\n".as_bytes().to_owned();
pub static ref R_HEYA: Vec<u8> = "#2\n*1\n#2\n&1\n+4\nHEY!\n".as_bytes().to_owned();
pub static ref R_UNKNOWN_ACTION: Vec<u8> = "#2\n*1\n#2\n&1\n!15\nUnknown action\n"
pub static ref R_UNKNOWN_ACTION: Vec<u8> = "#2\n*1\n#2\n&1\n!14\nUnknown action\n"
.as_bytes()
.to_owned();
}

Loading…
Cancel
Save