]> code.citadel.org Git - citadel.git/blobdiff - webcit/webserver.c
* temporary solution to our ser_readln migration: have a buffer on the session, read...
[citadel.git] / webcit / webserver.c
index ed9188ffa913a4f3a3fd92d8f9220596abed9fdb..74bff8c4812c2627fd3c88e7d5103c813ffa6d7d 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",
@@ -274,13 +275,10 @@ long end_burst(void)
         fd_set wset;
         int fdflags;
 
-       //#ifdef HAVE_ZLIB
-       /* Perform gzip compression, if enabled and supported by client */
        if (!DisableGzip && (WCC->gzip_ok) && CompressBuffer(WCC->WBuf))
        {
                hprintf("Content-encoding: gzip\r\n");
        }
-       //#endif        /* HAVE_ZLIB */
 
        hprintf("Content-length: %d\r\n\r\n", StrLength(WCC->WBuf));