]> code.citadel.org Git - citadel.git/blobdiff - webcit/webcit.c
* Changes to mime parser ... still something wrong
[citadel.git] / webcit / webcit.c
index 0f06876bc6b559b18dc012bffa0c79b3c0f09bf7..6cb40a0cfea647526d6e6c059ffcd6406464e272 100644 (file)
@@ -601,6 +601,7 @@ void session_loop(struct httprequest *req)
        struct httprequest *hptr;
        char browser_host[256];
        char user_agent[256];
+       FILE *fp;
 
        /* We stuff these with the values coming from the client cookies,
         * so we can use them to reconnect a timed out session if we have to.
@@ -665,6 +666,9 @@ void session_loop(struct httprequest *req)
                              "application/x-www-form-urlencoded", 33)) {
                        addurls(content);
                } else if (!strncasecmp(ContentType, "multipart", 9)) {
+                       fp = fopen("mime.out", "wb");
+                       fwrite(content, ContentLength, 1, fp);
+                       fclose(fp);
                        content_end = content + ContentLength;
                        mime_parser(content, content_end, *upload_handler,
                                        NULL, NULL, NULL, 0);