Closed sbtourist closed 13 years ago
By looking at your latest sources, I honestly don't get why it's giving that exception: maybe it's something you fixed in the latest snapshot version?
By response with null body you mean empty body, right?
I mean the server doesn't return anything.
Anything? Status line? Headers?
I've fixed situation where no message body was delivered, response is done, and you want to use h.a.c/string or even h.a.c/body. Hopefully it fixes your issue: neotyk@27a6c1183b9817dfb2ee9af29c577c194b70d34f
Great: so did you succeed to reproduce the bug in your test? Out of curiosity, what caused that odd exception?
I didn't manage to reproduce it :( Though I found another issue, which was following: If response was finished, and no body was delivered both string and body would wait infinitely for delivery of body. And that is what I have solved.
No worries: I'm adding sonatype repositories to leiningen, so that I can make the master working and try to reproduce it. Stay tuned.
Pull from master, repository is already there.
Is it still a bug for you, I can't reproduce it.
Can't reproduce this anymore: will eventually reopen if able to reproduce.
When trying to extract a response body with the "string" function, it fails if the body is null as follows:
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to java.lang.CharSequence
Even if extracting a null body may be an illegal operation, the above exception doesn't make the problem clear for the user.