Skip to content

Commit

Permalink
switched to using header-value internally
Browse files Browse the repository at this point in the history
darcs-hash:20060609140505-3cc5d-6a44aba6beb88eaf0edde50de87f9fea97c245f4.gz
  • Loading branch information
Gary King committed Jun 9, 2006
1 parent 209febc commit 490affe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dev/simple-http.lisp
Expand Up @@ -132,7 +132,7 @@
(return-from got (list response headers stream)))
(when stream
(close stream))
(setf url (cdr (assoc :location headers))))))
(setf url (header-value :location headers)))))
(when (>= response 400)
(when stream (close stream))
(when signal-error?
Expand All @@ -151,7 +151,7 @@
(http-resolve url)
(declare (ignore response))
(unwind-protect
(let ((length (parse-integer (or (cdr (assoc :content-length headers)) "")
(let ((length (parse-integer (or (header-value :content-length headers) "")
:junk-allowed t))
(total 0))
#+:clisp (setf (stream-element-type stream)
Expand Down

0 comments on commit 490affe

Please sign in to comment.