]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
* Removed the gzip compression stuff due to bugs in Internet Explorer.
[citadel.git] / webcit / context_loop.c
index 6cad89f9b05428da318d36c2b4ca288af920c0ed..8eddaea805023bdfabee0ce4d95c4761a58cee54 100644 (file)
@@ -152,6 +152,7 @@ int req_gets(int sock, char *buf, char *hold)
                                return(0);
                        }
        }
+
        return(0);
 }
 
@@ -238,6 +239,7 @@ void context_loop(int sock)
        memset(hold, 0, sizeof(hold));
        do {
                if (req_gets(sock, buf, hold) < 0) return;
+
                if (!strncasecmp(buf, "Cookie: webcit=", 15)) {
                        cookie_to_stuff(&buf[15], &desired_session,
                                NULL, NULL, NULL);
@@ -270,6 +272,7 @@ void context_loop(int sock)
         */
        if (!strncasecmp(buf, "GET ", 4)) strcpy(buf, &buf[4]);
        else if (!strncasecmp(buf, "HEAD ", 5)) strcpy(buf, &buf[5]);
+       else if (!strncasecmp(buf, "POST ", 5)) strcpy(buf, &buf[5]);
        if (buf[1]==' ') buf[1]=0;
 
        /*