Remove stray null byte that was being tacked onto the encrypted data
This commit is contained in:
parent
4dc5ffa936
commit
04417a96a4
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue