From 04417a96a464683a7f39c4b365294cfd1e5ecc0b Mon Sep 17 00:00:00 2001 From: Emi Simpson Date: Sat, 13 Aug 2022 21:43:23 -0400 Subject: [PATCH] Remove stray null byte that was being tacked onto the encrypted data --- src/upload.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/upload.rs b/src/upload.rs index ee24201..1f8ff6d 100644 --- a/src/upload.rs +++ b/src/upload.rs @@ -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()