mirror of
https://github.com/vale981/lack
synced 2025-03-05 09:21: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
|
||||
(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)
|
||||
|
|
Loading…
Add table
Reference in a new issue