We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
find
rfind
1 parent c3da445 commit 4e64125Copy full SHA for 4e64125
src/prologue/core/form.nim
@@ -24,7 +24,7 @@ import ./request
24
func parseFormPart*(body, contentType: string): FormPart =
25
## Parses form part of the body of the request.
26
let
27
- sep = contentType[contentType.rfind("boundary") + 9 .. ^1]
+ sep = contentType[contentType.find("boundary") + 9 .. ^1]
28
startSep = fmt"--{sep}"
29
endSep = fmt"--{sep}--"
30
startPos = find(body, startSep)
0 commit comments