aboutsummaryrefslogtreecommitdiff
path: root/lazybones.lisp
diff options
context:
space:
mode:
authorCoin Okay <cbeok@protonmail.com>2020-04-22 21:06:03 -0500
committerCoin Okay <cbeok@protonmail.com>2020-04-22 21:06:03 -0500
commit8bcb8fb88f7039404e01eeac8814564062ecf350 (patch)
tree8e6ca113e6e9eaaa8ab8b809807644a627a63a21 /lazybones.lisp
parent85b00ffcca2590d737309da0d71f7f5061aff12d (diff)
multipart/form-data decoder
Diffstat (limited to 'lazybones.lisp')
-rw-r--r--lazybones.lisp7
1 files changed, 3 insertions, 4 deletions
diff --git a/lazybones.lisp b/lazybones.lisp
index e762f03..f26e87a 100644
--- a/lazybones.lisp
+++ b/lazybones.lisp
@@ -44,16 +44,15 @@ definition."
*decoders*)))
-
-
(defun decode-body (stream content-type content-length)
"Decodes the body according to the Content-Type header.
If no matching decoder is found in the *DECODERS* ALIST, then the
STREAM itself is returned unaltered.
"
- (if-let ((decoder (assoc content-type *decoders* :test (lambda (ct key) (starts-with-subseq key ct)))))
- (funcall (cdr decoder) stream content-length)
+ (if-let ((decoder (assoc content-type *decoders*
+ :test (lambda (ct key) (starts-with-subseq key ct)))))
+ (funcall (cdr decoder) stream content-type content-length)
stream))