diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2009-08-20 16:11:42 -0400 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2009-08-20 16:11:42 -0400 |
commit | 0ab6bd4dfa56e4977944355e02a68c80d7c38fb8 (patch) | |
tree | a495dd9f78d192195e5a175b64a8f776e439bc5c | |
parent | 7b661cfc55e2293d14bed4fd801c017b3f68d291 (diff) |
http/agent.clj: handle null InputStream from HTTP response
-rw-r--r-- | src/clojure/contrib/http/agent.clj | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/clojure/contrib/http/agent.clj b/src/clojure/contrib/http/agent.clj index 4ade2b91..c5a6b51c 100644 --- a/src/clojure/contrib/http/agent.clj +++ b/src/clojure/contrib/http/agent.clj @@ -146,7 +146,7 @@ retrieved with the 'stream', 'string', and 'bytes' functions." [http-agnt] (let [output (ByteArrayOutputStream.)] - (duck/copy (stream http-agnt) output) + (duck/copy (or (stream http-agnt) "") output) output)) |