(url-http-file-exists-p): Test if status is integer.
authorReiner Steib <Reiner.Steib@gmx.de>
Fri, 12 May 2006 12:29:36 +0000 (12:29 +0000)
committerReiner Steib <Reiner.Steib@gmx.de>
Fri, 12 May 2006 12:29:36 +0000 (12:29 +0000)
lisp/url/ChangeLog
lisp/url/url-http.el

index 1c3e383..8eb2cd8 100644 (file)
@@ -1,3 +1,7 @@
+2006-05-12  Reiner Steib  <Reiner.Steib@gmx.de>
+
+       * url-http.el (url-http-file-exists-p): Test if status is integer.
+
 2006-05-05  Andreas Seltenreich  <seltenreich@gmx.de>  (tiny change)
 
        * url-http.el (url-http-parse-headers): Don't reuse connection if
index 45bf97e..ae3a4b3 100644 (file)
@@ -1141,7 +1141,8 @@ CBARGS as the arguments."
        (setq exists nil)
       (setq status (url-http-symbol-value-in-buffer 'url-http-response-status
                                                    buffer 500)
-           exists (and (>= status 200) (< status 300)))
+           exists (and (integerp status)
+                       (>= status 200) (< status 300)))
       (kill-buffer buffer))
     exists))