diff options
author | bptato <nincsnevem662@gmail.com> | 2023-07-02 14:32:03 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-07-02 14:32:03 +0200 |
commit | 31cca81850bfe43771767dbffc2879a5061b84cd (patch) | |
tree | b615e00e6c9e08cb5d787c69021b9edc1afaf29f /src/buffer/buffer.nim | |
parent | 8430c0954798ee1632a933a9ca251be8302f6fb6 (diff) | |
download | chawan-31cca81850bfe43771767dbffc2879a5061b84cd.tar.gz |
FormData fixes
Diffstat (limited to 'src/buffer/buffer.nim')
-rw-r--r-- | src/buffer/buffer.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/buffer/buffer.nim b/src/buffer/buffer.nim index bce21b9f..7354d94b 100644 --- a/src/buffer/buffer.nim +++ b/src/buffer/buffer.nim @@ -815,7 +815,7 @@ proc serializeMultipartFormData(entries: seq[FormDataEntry]): FormData = let value = makeCRLF(entry.svalue) formData.append(name, value) else: - formData.append(name, entry.value, entry.filename) + formData.append(name, entry.value, opt(entry.filename)) return formData proc serializePlainTextFormData(kvs: seq[(string, string)]): string = |