Fix Lack.Request not to raise an error when there's the request body without Content-Type header. (fixes #39)

This commit is contained in:
Eitaro Fukamachi 2019-08-29 15:57:49 +09:00
parent 8ddb653007
commit a6d0a11ca3

View file

@ -101,7 +101,8 @@
;; POST parameters
(when (and (null body-parameters)
(request-has-body-p req))
(request-has-body-p req)
(stringp content-type))
(let ((parsed (http-body:parse content-type content-length raw-body)))
(when (and (consp parsed)
(every #'consp parsed))