aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib
diff options
context:
space:
mode:
Diffstat (limited to 'src/clojure/contrib')
-rw-r--r--src/clojure/contrib/http/agent.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/clojure/contrib/http/agent.clj b/src/clojure/contrib/http/agent.clj
index fe34c98c..d63cfd1e 100644
--- a/src/clojure/contrib/http/agent.clj
+++ b/src/clojure/contrib/http/agent.clj
@@ -312,9 +312,9 @@
(.getResponseMessage (::connection http-agnt))))
(defn headers
- "Returns a String=>String map of HTTP response headers. Header
- names are converted to all lower-case. If a header appears more
- than once, only the last value is returned."
+ "Returns a map of HTTP response headers. Header names are converted
+ to keywords in all lower-case Header values are strings. If a
+ header appears more than once, only the last value is returned."
[http-agnt]
(reduce (fn [m [#^String k v]]
(assoc m (when k (keyword (.toLowerCase k))) (last v)))