Skip to content

Commit 4e64125

Browse files
authored
Use find instead of rfind
ref #257
1 parent c3da445 commit 4e64125

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/prologue/core/form.nim

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import ./request
2424
func parseFormPart*(body, contentType: string): FormPart =
2525
## Parses form part of the body of the request.
2626
let
27-
sep = contentType[contentType.rfind("boundary") + 9 .. ^1]
27+
sep = contentType[contentType.find("boundary") + 9 .. ^1]
2828
startSep = fmt"--{sep}"
2929
endSep = fmt"--{sep}--"
3030
startPos = find(body, startSep)

0 commit comments

Comments
 (0)