|
|
@@ -93,16 +93,16 @@ is replaced with replacement."
|
|
|
|
|
|
;; XML processing
|
|
|
(defun xml-request (url)
|
|
|
- (multiple-value-bind (http-stream status headers uri stream)
|
|
|
+ (multiple-value-bind (stream status headers uri http-stream)
|
|
|
(drakma:http-request (http-default url)
|
|
|
:force-binary t
|
|
|
:want-stream t
|
|
|
:decode-content t)
|
|
|
- (declare (ignore status headers stream))
|
|
|
+ (declare (ignore status headers))
|
|
|
(unwind-protect
|
|
|
(progn
|
|
|
- (setf (flex:flexi-stream-external-format http-stream) :utf-8)
|
|
|
- (values (plump:parse http-stream) uri))
|
|
|
+ (setf (flex:flexi-stream-external-format stream) :utf-8)
|
|
|
+ (values (plump:parse stream) uri))
|
|
|
(ignore-errors (close http-stream)))))
|
|
|
|
|
|
(defun get-by-tag (node tag)
|
|
|
@@ -110,15 +110,15 @@ is replaced with replacement."
|
|
|
|
|
|
;; JSON processing
|
|
|
(defun json-request (url &key (method :get) parameters (object-as :alist))
|
|
|
- (multiple-value-bind (http-stream status headers uri stream)
|
|
|
+ (multiple-value-bind (stream status headers uri http-stream)
|
|
|
(drakma:http-request (http-default url) :method method :parameters parameters
|
|
|
:external-format-out :utf-8
|
|
|
:force-binary t :want-stream t :decode-content t)
|
|
|
- (declare (ignore status headers stream))
|
|
|
+ (declare (ignore status headers))
|
|
|
(unwind-protect
|
|
|
(progn
|
|
|
- (setf (flex:flexi-stream-external-format http-stream) :utf-8)
|
|
|
- (values (yason:parse http-stream :object-as object-as) uri))
|
|
|
+ (setf (flex:flexi-stream-external-format stream) :utf-8)
|
|
|
+ (values (yason:parse stream :object-as object-as) uri))
|
|
|
(ignore-errors (close http-stream)))))
|
|
|
|
|
|
;; Fix bug in local-time (following symlinks in /usr/share/zoneinfo/
|