changeset 60c341b966b1 in /home/hg/repos/python-nbxmpp
details:http://hg.gajim.org/python-nbxmpp?cmd=changeset;node=60c341b966b1
description: correctly compute message length (number of bytes instead of number of char). Fixes #35
diffstat:
nbxmpp/transports_nb.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (17 lines):
diff -r a235715022e5 -r 60c341b966b1 nbxmpp/transports_nb.py
--- a/nbxmpp/transports_nb.py Tue Sep 01 20:38:24 2015 +0100
+++ b/nbxmpp/transports_nb.py Sun Sep 13 15:14:31 2015 +0200
@@ -752,11 +752,11 @@
if 'Connection' in headers and headers['Connection'].strip()=='close':
self.close_current_connection = True
- if self.expected_length > len(httpbody):
+ if self.expected_length > len(httpbody.encode('utf-8')):
# If we haven't received the whole HTTP mess yet, let's end the thread.
# It will be finnished from one of following recvs on plugged socket.
log.info('not enough bytes in HTTP response - %d expected, got %d' %
- (self.expected_length, len(httpbody)))
+ (self.expected_length, len(httpbody.encode('utf-8'))))
else:
# First part of buffer has been extraced and is going to be handled,
# remove it from buffer
changeset 16ec6abb2297 in /home/hg/repos/gajim-plugins
author: hg
branches:
details:gajim-plugins?cmd=changeset;node=16ec6abb2297
description: Added missing homepage field to manifest.ini
diffstat:
httpupload/.httpupload.py.kate-swp | Bin
httpupload/manifest.ini | 4 +++-
2 Dateien ver?ndert, 3 Zeilen hinzugef?gt(+), 1 Zeilen entfernt(-)
Unterschiede (19 Zeilen):
diff -r 59a52d1e3ca0 -r 16ec6abb2297 httpupload/.httpupload.py.kate-swp
Binary file httpupload/.httpupload.py.kate-swp has changed
diff -r 59a52d1e3ca0 -r 16ec6abb2297 httpupload/manifest.ini
--- a/httpupload/manifest.ini Wed Sep 02 01:53:28 2015 +0200
+++ b/httpupload/manifest.ini Thu Sep 03 01:24:23 2015 +0200
@@ -1,5 +1,5 @@
[info]
-name: Httpupload
+name: HttpUpload
short_name: httpupload
version: 0.2.8
description: This plugin is designed to send a file to a contact or muc by using httpupload.<br/>
@@ -8,4 +8,6 @@
If the receiving side supports <a href="http://xmpp.org/extensions/xep-0071.html">XEP-0071: XHTML-IM</a>
and maintains the scheme data: URI, a thumbnail image is send along the link to the full size image.
authors: Thilo Molitor <thilo(a)eightysoft.de>
+homepage: https://trac-plugins.gajim.org/wiki/HttpUploadPlugin
+min_gajim_version: 0.16.0
max_gajim_version: 0.16.9