Innocenty Enikeew 10 anos atrás
pai
commit
112b962e9e
2 arquivos alterados com 2 adições e 2 exclusões
  1. 1 1
      src/locations.lisp
  2. 1 1
      src/utils.lisp

+ 1 - 1
src/locations.lisp

@@ -15,7 +15,7 @@
                 (flexi-streams:octets-to-string
                  (drakma:http-request
                   (format nil
-                          "http://open.mapquestapi.com/nominatim/v1/reverse.php?format=json&lat=~A&lon=~A"
+                          "http://open.mapquestapi.com/nominatim/v1/reverse.php?format=json&lat=~F&lon=~F"
                           lat lon)))))
          (address (gethash "address" data)))
     (values (gethash "display_name" data)

+ 1 - 1
src/utils.lisp

@@ -118,7 +118,7 @@
 (defun chrome-cookie-decode (value)
   (when (mismatch (subseq value 0 3)
                   (mapcar #'char-code (coerce "v10" 'list)))
-    (error 'bad-encoding-verion))
+    (error 'bad-encoding-error))
   (crypto:decrypt-in-place (chrome-make-cookie-cipher) value :start 3)
   (coerce (mapcar #'code-char (subseq (coerce value 'list)
                                       3 (- (length value)