Browse Source

Remove sha1= prefix from signature

Mark Rousskov 6 years ago
parent
commit
81a85409ed
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/main.rs

+ 1 - 0
src/main.rs

@@ -241,6 +241,7 @@ impl FromDataSimple for SignedPayload {
                 ));
             }
         };
+        let signature = &signature["sha1=".len()..];
 
         let mut stream = data.open().take(1024 * 1024 * 5); // 5 Megabytes
         let mut buf = Vec::new();