Fix lack.test's request to work in case when 'content' is not a cons.

This commit is contained in:
Eitaro Fukamachi 2018-10-26 22:49:35 +09:00
parent 2a9fc540cf
commit 4dae26e752

View file

@ -41,7 +41,8 @@
(when content
(let ((content-type (or (cdr (assoc "content-type" headers :test #'string-equal))
(if (find-if #'pathnamep content :key #'cdr)
(if (and (consp content)
(find-if #'pathnamep content :key #'cdr))
"multipart/form-data"
"application/x-www-form-urlencoded"))))
(if (assoc "content-type" headers :test #'string-equal)