mirror of
https://github.com/vale981/lack
synced 2025-03-05 17:31:39 -05:00
Fix lack.test's request to work in case when 'content' is not a cons.
This commit is contained in:
parent
2a9fc540cf
commit
4dae26e752
1 changed files with 2 additions and 1 deletions
|
@ -41,7 +41,8 @@
|
||||||
|
|
||||||
(when content
|
(when content
|
||||||
(let ((content-type (or (cdr (assoc "content-type" headers :test #'string-equal))
|
(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"
|
"multipart/form-data"
|
||||||
"application/x-www-form-urlencoded"))))
|
"application/x-www-form-urlencoded"))))
|
||||||
(if (assoc "content-type" headers :test #'string-equal)
|
(if (assoc "content-type" headers :test #'string-equal)
|
||||||
|
|
Loading…
Add table
Reference in a new issue