]> code.citadel.org Git - citadel.git/blobdiff - webcit/context_loop.c
* Initial implementation of GroupDAV PROPFIND
[citadel.git] / webcit / context_loop.c
index f0c8e553ba6bc82c674f62f113da6e59ee8b1361..f4bd27372292839ce03a41b755a219d8d0f1ffb2 100644 (file)
@@ -323,9 +323,7 @@ void context_loop(int sock)
         * set.  If there isn't, the client browser has cookies turned off
         * (or doesn't support them) and we have to barf & bail.
         */
-       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]);
+       remove_token(buf, 0, ' ');
        if (buf[1]==' ') buf[1]=0;
 
        /*