]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cgi-bin/html.c
Merge changes from CUPS 1.4svn-r8290.
[thirdparty/cups.git] / cgi-bin / html.c
index 2db9bdd25344daaa07177dc9216e71cb6f1a117d..5d0a39fdd0c563c2bc04d97763643194af4e7285 100644 (file)
@@ -68,7 +68,10 @@ void
 cgiEndMultipart(void)
 {
   if (cgi_multipart)
+  {
     printf("\n%s--\n", cgi_multipart);
+    fflush(stdout);
+  }
 }
 
 
@@ -190,8 +193,10 @@ cgiStartHTML(const char *title)            /* I - Title of page */
 void
 cgiStartMultipart(void)
 {
-  puts("MIME-Version: 1.0");
-  puts("Content-Type: multipart/x-mixed-replace; boundary=\"CUPS-MULTIPART\"\n");
+  puts("MIME-Version: 1.0\n"
+       "Content-Type: multipart/x-mixed-replace; boundary=\"CUPS-MULTIPART\"\n");
+  fflush(stdout);
+
   cgi_multipart = "--CUPS-MULTIPART";
 }