Remove stray null byte that was being tacked onto the encrypted data

This commit is contained in:
Emi Simpson 2022-08-13 21:43:23 -04:00
parent 4dc5ffa936
commit 04417a96a4
Signed by: Emi
GPG Key ID: A12F2C2FFDC3D847
1 changed files with 1 additions and 1 deletions

View File

@ -3,7 +3,7 @@ use std::io::Read;
use ureq::{Agent, AgentBuilder};
const DATA_HEADER: &'static [u8] = b"--FuckLiterallyAllCops\r\nContent-Disposition: form-data; name=\"file\"; filename=\"pigeon.bin\"\r\nContent-Type: application/octet-stream\r\n\r\n";
const DATA_FOOTER: &'static [u8] = b"\x00\r\n--FuckLiterallyAllCops--\r\n";
const DATA_FOOTER: &'static [u8] = b"\r\n--FuckLiterallyAllCops--\r\n";
pub fn get_agent() -> Agent {
AgentBuilder::new()