Closed arnaudgeiser closed 2 years ago
In case of TLS usage (ssl-context) and an empty file, a NullPointerException was raised on the following code because bs/to-byte-buffers was returning nil and a manifold.stream/->source cannot be build from it.
ssl-context
NullPointerException
bs/to-byte-buffers
nil
manifold.stream/->source
(send-streaming-body ch msg (-> file (bs/to-byte-buffers {:chunk-size (.-chunk-size file)}) s/->source))
This issue has been reported here : https://github.com/clj-commons/aleph/issues/559
Description
In case of TLS usage (
ssl-context
) and an empty file, aNullPointerException
was raised on the following code becausebs/to-byte-buffers
was returningnil
and amanifold.stream/->source
cannot be build from it.This issue has been reported here : https://github.com/clj-commons/aleph/issues/559