Skip to content

Commit

Permalink
universal.c: Support application/vnd.cups-postscript (#31)
Browse files Browse the repository at this point in the history
Some filters (like hpps from hplip) produce this MIME type, so if the
client uses classic driver/printer app and the server IPP Everywhere,
job fail because the library is not able to find suitable conversion.

This patch together with cups-filters PR fixes the issue.
  • Loading branch information
zdohnal authored Sep 21, 2023
1 parent eeec8f6 commit 503a754
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cupsfilters/universal.c
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ cfFilterUniversal(int inputfd, // I - File descriptor input stream
else
{
#ifdef HAVE_GHOSTSCRIPT
if (!strcasecmp(input, "application/postscript"))
if (!strcasecmp(input, "application/postscript") || !strcasecmp(input, "application/vnd.cups-postscript"))
{
outformat = malloc(sizeof(cf_filter_out_format_t));
*outformat = CF_FILTER_OUT_FORMAT_PDF;
Expand Down

0 comments on commit 503a754

Please sign in to comment.