[pan2/testing: 200/279] fixed taskupload
- From: Heinrich MÃller <henmull src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pan2/testing: 200/279] fixed taskupload
- Date: Sat, 3 Dec 2011 22:38:33 +0000 (UTC)
commit a3ca90a7a6ebd2c85d2c69c36a5956e1d9570ac9
Author: Heinrich MÃller <sphemuel stud informatik uni-erlangen de>
Date: Sat Sep 3 14:49:28 2011 +0200
fixed taskupload
pan/tasks/task-upload.cc | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/pan/tasks/task-upload.cc b/pan/tasks/task-upload.cc
index 032e035..6acd1ce 100644
--- a/pan/tasks/task-upload.cc
+++ b/pan/tasks/task-upload.cc
@@ -217,10 +217,10 @@ TaskUpload :: prepend_headers(GMimeMessage* msg, TaskUpload::Needed * n, std::st
g_mime_object_set_header ((GMimeObject *) msg, "Content-Type",buf);
char * all(g_mime_object_get_headers ((GMimeObject *) msg));
- if (_first && _queue_pos==-1)
- all = g_mime_object_to_string ((GMimeObject *) msg);
- else if (_first && _queue_pos==0)
+ if (_first && _queue_pos==-1 || _queue_pos == 0)
all = g_mime_object_to_string ((GMimeObject *) msg);
+ else
+ all = g_mime_object_get_headers ((GMimeObject *) msg);
out << all << "\n";
if (_first && _queue_pos == -1) g_free(all);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]