[librest] RestProxy: Set the payload after _upload



commit 8d7ba174fd56c6ecc2a304d6558db8ca209de6ae
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 f45d3af..2d2ac58 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -1060,7 +1060,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]