* operate blobreader so it will search \n000\n if we're server reading and just end...
authorWilfried Göesgens <willi@citadel.org>
Tue, 21 Apr 2009 20:36:08 +0000 (20:36 +0000)
committerWilfried Göesgens <willi@citadel.org>
Tue, 21 Apr 2009 20:36:08 +0000 (20:36 +0000)
webcit/tcp_sockets.c
webcit/webserver.c

index 5833c4bda4a37f6b965d707e9d5296ad31326abf..22733ef58eac12f7771e21b9d468609611167ff8 100644 (file)
@@ -232,6 +232,7 @@ int StrBuf_ServGetBLOBBuffered(StrBuf *buf, long BlobSize)
                                    &WCC->serv_sock, 
                                    1, 
                                    BlobSize, 
+                                   NNN_TERM,
                                    &Err);
        if (rc < 0)
        {
index ed9188ffa913a4f3a3fd92d8f9220596abed9fdb..ac21038e7bd1a1d11a156b900624ea6412f43404 100644 (file)
@@ -235,6 +235,7 @@ int client_read_to(int *sock, StrBuf *Target, StrBuf *Buf, const char **Pos, int
                                        sock, 
                                        1, 
                                        bytes,
+                                       O_TERM,
                                        &Error);
        if (retval < 0) {
                lprintf(2, "client_read() failed: %s\n",