Skip to content

Commit

Permalink
Change AND to WHEN; Change order of COND clauses
Browse files Browse the repository at this point in the history
  • Loading branch information
wsg committed Oct 12, 2016
1 parent 8765b8c commit 56f2ad9
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions request.lisp
Expand Up @@ -165,13 +165,13 @@

(defmethod slot-unbound ((class t) (request request) (slot (eql 'content-md5)))
(setf (content-md5 request)
(and *use-content-md5*
(let ((content (content request)))
(cond ((pathnamep content) (file-md5/b64 content))
((vectorp content) (vector-md5/b64 content))
((stringp content)
(vector-md5/b64
(flexi-streams:string-to-octets content))))))))
(when *use-content-md5*
(let ((content (content request)))
(cond ((pathnamep content) (file-md5/b64 content))
((stringp content)
(vector-md5/b64
(flexi-streams:string-to-octets content)))
((vectorp content) (vector-md5/b64 content)))))))

(defmethod slot-unbound ((class t) (request request) (slot (eql 'signed-string)))
(setf (signed-string request)
Expand Down

0 comments on commit 56f2ad9

Please sign in to comment.