diff options
| author | Reiner Steib | 2006-05-12 12:29:36 +0000 |
|---|---|---|
| committer | Reiner Steib | 2006-05-12 12:29:36 +0000 |
| commit | d10a6bf119706d057ff506a6480eeaed7d687835 (patch) | |
| tree | 0972d72fc41febf99bba30a77cbb9270d11b4c19 | |
| parent | e48335de35c9d1e1545ee6bf0dfa112d15c8bca8 (diff) | |
| download | emacs-d10a6bf119706d057ff506a6480eeaed7d687835.tar.gz emacs-d10a6bf119706d057ff506a6480eeaed7d687835.zip | |
(url-http-file-exists-p): Test if status is integer.
| -rw-r--r-- | lisp/url/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/url/url-http.el | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/lisp/url/ChangeLog b/lisp/url/ChangeLog index 1c3e383c9fb..8eb2cd8471b 100644 --- a/lisp/url/ChangeLog +++ b/lisp/url/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2006-05-12 Reiner Steib <Reiner.Steib@gmx.de> | ||
| 2 | |||
| 3 | * url-http.el (url-http-file-exists-p): Test if status is integer. | ||
| 4 | |||
| 1 | 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de> (tiny change) | 5 | 2006-05-05 Andreas Seltenreich <seltenreich@gmx.de> (tiny change) |
| 2 | 6 | ||
| 3 | * url-http.el (url-http-parse-headers): Don't reuse connection if | 7 | * url-http.el (url-http-parse-headers): Don't reuse connection if |
diff --git a/lisp/url/url-http.el b/lisp/url/url-http.el index 45bf97ec6b6..ae3a4b3e070 100644 --- a/lisp/url/url-http.el +++ b/lisp/url/url-http.el | |||
| @@ -1141,7 +1141,8 @@ CBARGS as the arguments." | |||
| 1141 | (setq exists nil) | 1141 | (setq exists nil) |
| 1142 | (setq status (url-http-symbol-value-in-buffer 'url-http-response-status | 1142 | (setq status (url-http-symbol-value-in-buffer 'url-http-response-status |
| 1143 | buffer 500) | 1143 | buffer 500) |
| 1144 | exists (and (>= status 200) (< status 300))) | 1144 | exists (and (integerp status) |
| 1145 | (>= status 200) (< status 300))) | ||
| 1145 | (kill-buffer buffer)) | 1146 | (kill-buffer buffer)) |
| 1146 | exists)) | 1147 | exists)) |
| 1147 | 1148 | ||