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