Blame SOURCES/cups-ipp-multifile.patch

3635cf
diff -up cups-1.7.0/backend/ipp.c.ipp-multifile cups-1.7.0/backend/ipp.c
3635cf
--- cups-1.7.0/backend/ipp.c.ipp-multifile	2013-10-24 15:52:00.745814354 +0100
3635cf
+++ cups-1.7.0/backend/ipp.c	2013-10-24 15:53:46.463266724 +0100
3635cf
@@ -1758,7 +1758,10 @@ main(int  argc,				/* I - Number of comm
3635cf
 	ippAddBoolean(request, IPP_TAG_OPERATION, "last-document",
3635cf
         	      (i + 1) >= num_files);
3635cf
 
3635cf
-	if (document_format)
3635cf
+	if (num_files > 1)
3635cf
+	  ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
3635cf
+		       "document-format", NULL, "application/octet-stream");
3635cf
+	else if (document_format)
3635cf
 	  ippAddString(request, IPP_TAG_OPERATION, IPP_TAG_MIMETYPE,
3635cf
 		       "document-format", NULL, document_format);
3635cf