Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Contents retrieved by url library are copied as unibyte string.

* twittering-mode.el: Contents retrieved by url library are copied
as unibyte string. Without this modification, binary data may be
retrieved incorrectly.
(twittering-send-http-request-urllib): copy contents retrieved by
url library as unibyte string. Without this modification, binary
data may be retrieved incorrectly.
  • Loading branch information...
commit a7f96f683fc5b78cada2601c12a87330cb2735ca 1 parent d8afe49
@cvmat cvmat authored
Showing with 8 additions and 0 deletions.
  1. +7 −0 ChangeLog
  2. +1 −0  twittering-mode.el
View
7 ChangeLog
@@ -5,6 +5,13 @@
(twittering-url-retrieve-async): fix registration of sentinels to
avoid registering a sentinel repeatedly.
+ * twittering-mode.el: Contents retrieved by url library are copied
+ as unibyte string. Without this modification, binary data may be
+ retrieved incorrectly.
+ (twittering-send-http-request-urllib): copy contents retrieved by
+ url library as unibyte string. Without this modification, binary
+ data may be retrieved incorrectly.
+
2010-11-13 Tadashi MATSUO <tad@mymail.twin.jp>
* twittering-mode.el: `twittering-send-http-request' correctly
View
1  twittering-mode.el
@@ -1746,6 +1746,7 @@ The method to perform the request is determined from
(set (make-local-variable 'twittering-retrieved)
'not-completed)
(with-current-buffer buffer
+ (set-buffer-multibyte nil)
(insert-buffer-substring url-buffer))
(set-process-buffer proc buffer)
(unwind-protect
Please sign in to comment.
Something went wrong with that request. Please try again.