[librest/librest-0-7] RestProxy: Set the payload after _upload



commit 661dcf97f32a463ec5f3fc2c44768c0cf47d7b25
Author: Timm Bäder <mail baedert org>
Date:   Wed Mar 15 09:22:33 2017 +0100

    RestProxy: Set the payload after _upload
    
    Before this, it was impossible to get the server payload from a proxy
    call invoked via rest_proxy_call_upload.

 rest/rest-proxy-call.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index f5dc6bc..7eec134 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -1224,7 +1224,7 @@ _upload_call_message_completed_cb (SoupSession *session,
   priv->status_code = message->status_code;
   priv->status_message = g_strdup (message->reason_phrase);
 
-  _handle_error_from_message (message, &error);
+  finish_call (call, message, &error);
 
   closure->callback (closure->call,
                      closure->uploaded,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]