diff options
Diffstat (limited to 'src/html/formdata.nim')
| -rw-r--r-- | src/html/formdata.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html/formdata.nim b/src/html/formdata.nim index 7bbd1402..a2e7eb82 100644 --- a/src/html/formdata.nim +++ b/src/html/formdata.nim @@ -17,7 +17,7 @@ proc constructEntryList*(form: HTMLFormElement; submitter: Element = nil; proc generateBoundary(urandom: PosixStream): string = var s {.noinit.}: array[33, uint8] - urandom.recvDataLoop(s) + doAssert urandom.readDataLoop(s) # 33 * 4 / 3 = 44 + prefix string is 22 bytes = 66 bytes return "----WebKitFormBoundary" & btoa(s) |