about summary refs log tree commit diff stats
path: root/src/buffer/buffer.nim
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-07-02 14:32:03 +0200
committerbptato <nincsnevem662@gmail.com>2023-07-02 14:32:03 +0200
commit31cca81850bfe43771767dbffc2879a5061b84cd (patch)
treeb615e00e6c9e08cb5d787c69021b9edc1afaf29f /src/buffer/buffer.nim
parent8430c0954798ee1632a933a9ca251be8302f6fb6 (diff)
downloadchawan-31cca81850bfe43771767dbffc2879a5061b84cd.tar.gz
FormData fixes
Diffstat (limited to 'src/buffer/buffer.nim')
-rw-r--r--src/buffer/buffer.nim2
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 =