Commit d10a6bf1 authored by Reiner Steib's avatar Reiner Steib
Browse files

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

parent e48335de
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) 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de> (tiny change)
* url-http.el (url-http-parse-headers): Don't reuse connection if * url-http.el (url-http-parse-headers): Don't reuse connection if
......
...@@ -1141,7 +1141,8 @@ CBARGS as the arguments." ...@@ -1141,7 +1141,8 @@ CBARGS as the arguments."
(setq exists nil) (setq exists nil)
(setq status (url-http-symbol-value-in-buffer 'url-http-response-status (setq status (url-http-symbol-value-in-buffer 'url-http-response-status
buffer 500) buffer 500)
exists (and (>= status 200) (< status 300))) exists (and (integerp status)
(>= status 200) (< status 300)))
(kill-buffer buffer)) (kill-buffer buffer))
exists)) exists))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment