aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2009-08-20 16:11:42 -0400
committerStuart Sierra <mail@stuartsierra.com>2009-08-20 16:11:42 -0400
commit0ab6bd4dfa56e4977944355e02a68c80d7c38fb8 (patch)
treea495dd9f78d192195e5a175b64a8f776e439bc5c /src/clojure/contrib
parent7b661cfc55e2293d14bed4fd801c017b3f68d291 (diff)
http/agent.clj: handle null InputStream from HTTP response
Diffstat (limited to 'src/clojure/contrib')
-rw-r--r--src/clojure/contrib/http/agent.clj2
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))