On Mo, 2010-06-28 at 10:46 +0100, h2oz7v wrote:
> string "application/vnd.syncml+xml; charset=UTF-8"
Ah, that explains it. I hadn't noticed earlier that the charset is part
of the content type.
The "; charset=UTF-8" suffix breaks a too strict string comparison in
syncevo-dbus-server. Now tracked as
http://bugs.meego.com/show_bug.cgi?id=3554
In the meantime, patching the syncevo-http-server will be faster than
recompiling syncevo-dbus-server. The attached patch should do the trick.
--
Best Regards, Patrick Ohly
The content of this message is my personal opinion only and although
I am an employee of Intel, the statements I make here in no way
represent Intel's position on the issue, nor am I authorized to speak
on behalf of Intel on this matter.
diff --git a/test/syncevo-http-server.py b/test/syncevo-http-server.py
index ae92251..2dc666d 100755
--- a/test/syncevo-http-server.py
+++ b/test/syncevo-http-server.py
@@ -135,7 +135,7 @@ class SyncMLSession:
# feed new data into SyncEvolution and wait for reply
request.content.seek(0, 0)
self.connection.Process(request.content.read(),
- request.getHeader('content-type'))
+ request.getHeader('content-type').replace('; charset=UTF-8', ''))
self.request = request
SyncMLSession.sessions.append(self)
@@ -149,7 +149,7 @@ class SyncMLSession:
deferred = request.notifyFinish()
deferred.addCallback(self.done)
self.connection.Process(data,
- request.getHeader('content-type'))
+ request.getHeader('content-type').replace('; charset=UTF-8', ''))
self.request = request
class SyncMLPost(resource.Resource):
_______________________________________________
SyncEvolution mailing list
[email protected]
http://lists.syncevolution.org/listinfo/syncevolution