summaryrefslogtreecommitdiff
path: root/cgi-bin
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2009-01-23 22:36:42 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2009-01-23 22:36:42 +0000
commitd1c13e168660dfc384ead2efe29eb20a7abc5950 (patch)
treeaf85fff369a6092b78c7e3c694784cd7207f1c1c /cgi-bin
parentd2354e63977f1d0386a8d5724db2ec90fb666824 (diff)
Merge changes from CUPS 1.4svn-r8290.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@1144 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cgi-bin')
-rw-r--r--cgi-bin/html.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/cgi-bin/html.c b/cgi-bin/html.c
index 2db9bdd25..5d0a39fdd 100644
--- a/cgi-bin/html.c
+++ b/cgi-bin/html.c
@@ -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";
}