[rygel] core: Make sure all bytes are written on HTTP POST



commit fe841aee1e140cdc7a110b92a74035e26f2ca80a
Author: Jens Georg <mail jensge org>
Date:   Mon Jul 11 21:07:45 2011 +0200

    core: Make sure all bytes are written on HTTP POST

 src/rygel/rygel-http-post.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/rygel/rygel-http-post.vala b/src/rygel/rygel-http-post.vala
index 828a7f2..b3607ca 100644
--- a/src/rygel/rygel-http-post.vala
+++ b/src/rygel/rygel-http-post.vala
@@ -127,7 +127,7 @@ internal class Rygel.HTTPPost : HTTPRequest {
 
     private void on_got_chunk (Message msg, Buffer chunk) {
         try {
-            this.stream.write (chunk.data, this.cancellable);
+            this.stream.write_all (chunk.data, null, this.cancellable);
         } catch (Error error) {
             this.handle_error (error);
             this.handle_continue ();



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