common: key off of CONTENT_TYPE to determine if we're a command or not

This commit is contained in:
Solomon Peachy 2021-09-26 22:34:49 -04:00
parent fb0859ede0
commit 50819d9f0a
1 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
#include <signal.h>
#include <strings.h> /* For strncasecmp */
#define BACKEND_VERSION "0.115"
#define BACKEND_VERSION "0.116"
#ifndef CORRTABLE_PATH
#ifdef PACKAGE_DATA_DIR
@ -1349,7 +1349,7 @@ int main (int argc, char **argv)
use_serno = getenv("SERIAL");
uri = getenv("DEVICE_URI"); /* CUPS backend mode! */
type = getenv("FINAL_CONTENT_TYPE"); /* CUPS content type -- ie raster or command */
type = getenv("CONTENT_TYPE"); /* CUPS content type -- ie raster or command */
if (uri && strlen(uri)) { /* CUPS backend mode */
int base = optind; /* ie 1 */