Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions request.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -909,9 +909,7 @@ Any encodings in Transfer-Encoding, such as chunking, are always performed."
(return-from http-request #'finish-request))
(finish-request content)))))
;; the cleanup form of the UNWIND-PROTECT above
(when (and http-stream
(or (not done)
(and must-close
(not want-stream)))
(not (eq content :continuation)))
(ignore-errors (close http-stream)))))))
(when (and http-stream (not (eq content :continuation)))
(flet ((close-aborting (abort) (ignore-errors (close http-stream :abort abort))))
(cond ((not done) (close-aborting t))
((and must-close (not want-stream)) (close-aborting nil)))))))))