mirror of
https://github.com/vale981/lack
synced 2025-03-04 17:01:41 -05:00
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:
parent
8ddb653007
commit
a6d0a11ca3
1 changed files with 2 additions and 1 deletions
|
@ -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))
|
||||
|
|
Loading…
Add table
Reference in a new issue