diff options
author | bptato <nincsnevem662@gmail.com> | 2025-04-14 19:24:06 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-04-14 19:24:06 +0200 |
commit | 807d5aa1ec3a85ee5ef15a6149017de0b944f903 (patch) | |
tree | e9afcc4384e08d7cbd9ddf7c7d55cf5a10f97349 | |
parent | a001f439a20f6031779354ed8dcad1f0b4e331da (diff) | |
download | chawan-807d5aa1ec3a85ee5ef15a6149017de0b944f903.tar.gz |
pager, formdata: DynStream -> PosixStream
-rw-r--r-- | src/local/pager.nim | 2 | ||||
-rw-r--r-- | src/types/formdata.nim | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/local/pager.nim b/src/local/pager.nim index 36562a99..668f1509 100644 --- a/src/local/pager.nim +++ b/src/local/pager.nim @@ -90,7 +90,7 @@ type LineDataDownload = ref object of LineData outputId: int - stream: DynStream + stream: PosixStream url: URL LineDataAuth = ref object of LineData diff --git a/src/types/formdata.nim b/src/types/formdata.nim index 42398b7f..0d338a90 100644 --- a/src/types/formdata.nim +++ b/src/types/formdata.nim @@ -79,7 +79,7 @@ proc calcLength*(this: FormData): int = proc getContentType*(this: FormData): string = return "multipart/form-data; boundary=" & this.boundary -proc writeEntry*(stream: DynStream; entry: FormDataEntry; boundary: string) = +proc writeEntry*(stream: PosixStream; entry: FormDataEntry; boundary: string) = stream.write("--" & boundary & "\r\n") let name = percentEncode(entry.name, {'"', '\r', '\n'}) if entry.isstr: @@ -112,5 +112,5 @@ proc writeEntry*(stream: DynStream; entry: FormDataEntry; boundary: string) = discard stream.writeDataLoop(blob.buffer, blob.size) stream.write("\r\n") -proc writeEnd*(stream: DynStream; boundary: string) = +proc writeEnd*(stream: PosixStream; boundary: string) = stream.write("--" & boundary & "--\r\n") |