diff options
Diffstat (limited to 'src/server/buffer.nim')
-rw-r--r-- | src/server/buffer.nim | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/server/buffer.nim b/src/server/buffer.nim index fbeb772c..ba94ec34 100644 --- a/src/server/buffer.nim +++ b/src/server/buffer.nim @@ -1246,10 +1246,11 @@ proc submitForm(form: HTMLFormElement, submitter: Element): Option[Request] = return let entrylist = form.constructEntryList(submitter).get(@[]) - let action = if submitter.action() == "": - $form.document.url + let subAction = submitter.action() + let action = if subAction != "": + subAction else: - submitter.action() + $form.document.url let url = submitter.document.parseURL(action) if url.isNone: |