Closed odahideo closed 6 years ago
I'm sorry. took mistake. Change "to:" code with below:
(+maybe-delimiter-first-dash+
(if (= byte +dash+)
(go-state +maybe-delimiter-second-dash+)
(if (= byte +cr+)
(progn
(setf (ll-multipart-parser-boundary-mark parser) p)
(go-state +maybe-delimiter-start+))
(go-state +looking-for-delimiter+))))
Thanks and your patch LGTM. I can merge it if you'll send it as a PR.
Hi. I found a problem when I was sending a DOS text file to the ningle/clack/lack server. when the last line of the DOS file is only a pair of #\Return #\Newline, and it is sent by "multipart/form-data" post, the end of post contents are below:
When 'http-multipart-parse' reads the last part of the contents, the inner state changes like below:
It indicates'http-multipart-parse' losts the start of the boundary text. So I tried patching 'src/multipart-parser.lisp':
line 231 from:
to:
I think it works well.
thanks.