1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-27 08:43:40 -07:00

(url-http-file-exists-p): Test if status is integer.

This commit is contained in:
Reiner Steib 2006-05-12 12:29:36 +00:00
parent e48335de35
commit d10a6bf119
2 changed files with 6 additions and 1 deletions

View 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

View 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))