summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Dmytriichuk <kaktusad@gmail.com>2020-07-06 01:23:59 +0300
committerGitHub <noreply@github.com>2020-07-05 18:23:59 -0400
commitd4f9457536932c27937e5f7c6948cd6ef547ae25 (patch)
treee9e9e659a29ccff3d5b3aa89774a7815f34f4fc3
parente91594935a0cda8a898011fd61640e27c04028d4 (diff)
fix(std/mime): boundary random hex values (#6646)
-rw-r--r--std/mime/multipart.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/std/mime/multipart.ts b/std/mime/multipart.ts
index 42be47895..0d60fd00b 100644
--- a/std/mime/multipart.ts
+++ b/std/mime/multipart.ts
@@ -35,7 +35,7 @@ export function isFormFile(x: any): x is FormFile {
function randomBoundary(): string {
let boundary = "--------------------------";
for (let i = 0; i < 24; i++) {
- boundary += Math.floor(Math.random() * 10).toString(16);
+ boundary += Math.floor(Math.random() * 16).toString(16);
}
return boundary;
}