diff options
author | bptato <nincsnevem662@gmail.com> | 2024-03-04 17:28:37 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-03-04 17:28:37 +0100 |
commit | a510b9494678edaa745e6662d649ef8eeb3f28a6 (patch) | |
tree | bcfe065361c3af4631cb4ee90f13640c230a0a66 /src/xhr/formdata.nim | |
parent | c5dc63741f0d3a876c88b86d3e0374148fb6b3d0 (diff) | |
download | chawan-a510b9494678edaa745e6662d649ef8eeb3f28a6.tar.gz |
catom: merge TagType with AttrType
it's inefficient and pointless to treat them differently, so just derive a new enum from TagType with a macro
Diffstat (limited to 'src/xhr/formdata.nim')
-rw-r--r-- | src/xhr/formdata.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xhr/formdata.nim b/src/xhr/formdata.nim index 544aafd9..bbf9a843 100644 --- a/src/xhr/formdata.nim +++ b/src/xhr/formdata.nim @@ -1,6 +1,7 @@ import std/base64 import std/streams +import html/catom import html/dom import html/enums import js/domexception @@ -15,7 +16,6 @@ import chame/tags proc constructEntryList*(form: HTMLFormElement, submitter: Element = nil, encoding = "UTF-8"): seq[FormDataEntry] - proc generateBoundary(): string = let urandom = newFileStream("/dev/urandom") let s = urandom.readStr(32) |