aboutsummaryrefslogtreecommitdiff
path: root/lazybones.lisp
diff options
context:
space:
mode:
authorCoin Okay <cbeok@protonmail.com>2020-04-22 07:23:11 -0500
committerCoin Okay <cbeok@protonmail.com>2020-04-22 07:23:11 -0500
commitb8d69fcb7a156de7146be27d52066fc593a32628 (patch)
tree74d3fb7bb78e5cc42485552190774fc32b33cf6a /lazybones.lisp
parentf98a51086ccb3e77b183bd4972dd3120fb531ffa (diff)
decoder lookup is more flexible
Diffstat (limited to 'lazybones.lisp')
-rw-r--r--lazybones.lisp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lazybones.lisp b/lazybones.lisp
index feee92a..ade6c1f 100644
--- a/lazybones.lisp
+++ b/lazybones.lisp
@@ -60,7 +60,7 @@ definition."
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 #'string-equal)))
+ (if-let ((decoder (assoc content-type *decoders* :test (lambda (ct key) (starts-with-subseq key ct)))))
(funcall (cdr decoder) stream content-length)
stream))