Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
b0e0b216
Commit
b0e0b216
authored
Oct 07, 2010
by
Lars Magne Ingebrigtsen
Browse files
url-http.el (url-http-end-of-document-sentinel): Protect against the
process buffer being killed.
parent
29c72a6e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
7 deletions
+13
-7
lisp/url/ChangeLog
lisp/url/ChangeLog
+5
-0
lisp/url/url-http.el
lisp/url/url-http.el
+8
-7
No files found.
lisp/url/ChangeLog
View file @
b0e0b216
2010-10-07 Lars Magne Ingebrigtsen <larsi@gnus.org>
* url-http.el (url-http-end-of-document-sentinel): Protect against
the process buffer being killed.
2010-10-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
* url-http.el (url-http-wait-for-headers-change-function): Protect
...
...
lisp/url/url-http.el
View file @
b0e0b216
...
...
@@ -874,13 +874,14 @@ should be shown to the user."
(
url-http-debug
"url-http-end-of-document-sentinel in buffer (%s)"
(
process-buffer
proc
))
(
url-http-idle-sentinel
proc
why
)
(
with-current-buffer
(
process-buffer
proc
)
(
goto-char
(
point-min
))
(
if
(
not
(
looking-at
"HTTP/"
))
;; HTTP/0.9 just gets passed back no matter what
(
url-http-activate-callback
)
(
if
(
url-http-parse-headers
)
(
url-http-activate-callback
)))))
(
when
(
buffer-name
(
process-buffer
proc
))
(
with-current-buffer
(
process-buffer
proc
)
(
goto-char
(
point-min
))
(
if
(
not
(
looking-at
"HTTP/"
))
;; HTTP/0.9 just gets passed back no matter what
(
url-http-activate-callback
)
(
if
(
url-http-parse-headers
)
(
url-http-activate-callback
))))))
(
defun
url-http-simple-after-change-function
(
st
nd
length
)
;; Function used when we do NOT know how long the document is going to be
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment