Skip to content
Browse files

Ensure that the methods using url library works for HTTP redirection.

* twittering-mode.el: Ensure that the methods using url library
works well for HTTP redirection.
(twittering-send-http-request-urllib): make the variable,
`url-http-attempt-keepalives', buffer-local in order to send the
local value to the sentinel invoked for HTTP redirection. If the
variable is not made buffer-local, the connection with redirection
may not be closed according to its global value.
  • Loading branch information...
1 parent 88d260e commit 3db31c369f22ce35503ff86376e390c823ec14f2 @cvmat cvmat committed Nov 30, 2010
Showing with 15 additions and 1 deletion.
  1. +10 −0 ChangeLog
  2. +5 −1 twittering-mode.el
View
10 ChangeLog
@@ -1,3 +1,13 @@
+2010-11-30 Tadashi MATSUO <tad@mymail.twin.jp>
+
+ * twittering-mode.el: Ensure that the methods using url library
+ works well for HTTP redirection.
+ (twittering-send-http-request-urllib): make the variable,
+ `url-http-attempt-keepalives', buffer-local in order to send the
+ local value to the sentinel invoked for HTTP redirection. If the
+ variable is not made buffer-local, the connection with redirection
+ may not be closed according to its global value.
+
2010-11-27 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: Fix a bug of retrieving a URI repeatedly.
View
6 twittering-mode.el
@@ -1779,7 +1779,11 @@ The method to perform the request is determined from
(when (buffer-live-p result-buffer)
(with-current-buffer result-buffer
(set (make-local-variable 'url-show-status)
- twittering-url-show-status))
+ twittering-url-show-status)
+ ;; Make `url-http-attempt-keepalives' buffer-local
+ ;; in order to send the current value of the variable
+ ;; to the sentinel invoked for HTTP redirection,
+ (make-local-variable 'url-http-attempt-keepalives))
(get-buffer-process result-buffer))))))
(defun twittering-pre-process-buffer-urllib (proc buffer connection-info)

0 comments on commit 3db31c3

Please sign in to comment.
Something went wrong with that request. Please try again.