Skip to content
Browse files

Don't attempt to parse body when content-type is NIL

  • Loading branch information...
Yrjänä Rankka
Yrjänä Rankka committed Sep 6, 2019
1 parent 2921d36 commit 9c607b80aeacb6c0e266aed20a1ba70ebec45081
Showing with 2 additions and 1 deletion.
  1. +2 −1 v1-compat/src/core/request.lisp
@@ -181,7 +181,8 @@ on an original raw-body."

(setf (getf env :raw-body) (slot-value req 'raw-body))
;; POST parameters
(unless (slot-boundp req 'body-parameters)
(unless (or (null (content-type req))
(slot-boundp req 'body-parameters))
(setf (slot-value req 'body-parameters)
(parse (content-type req) (content-length req) (raw-body req)))
(file-position (raw-body req) 0)

0 comments on commit 9c607b8

Please sign in to comment.
You can’t perform that action at this time.