]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - test/ippserver.c
Update dependencies.
[thirdparty/cups.git] / test / ippserver.c
index 8271446406c6e5c1d477114fdcd6a7423b445ec8..01b8f719ba71160ac3d5c47904fa7dadfb7e3f5d 100644 (file)
@@ -944,12 +944,7 @@ create_job(_ipp_client_t *client)  /* I - Client */
       job->format = "application/octet-stream";
 
     if ((attr = ippFindAttribute(client->request, "document-name", IPP_TAG_NAME)) != NULL)
-    {
-      ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name", NULL, ippGetString(attr, 0, NULL));
       ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name-supplied", NULL, ippGetString(attr, 0, NULL));
-    }
-    else
-      ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name", NULL, "Untitled");
   }
 
   if ((attr = ippFindAttribute(client->request, "job-name", IPP_TAG_NAME)) != NULL)
@@ -3639,12 +3634,7 @@ ipp_send_document(_ipp_client_t *client)/* I - Client */
     ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_MIMETYPE, "document-format-supplied", NULL, ippGetString(attr, 0, NULL));
 
   if ((attr = ippFindAttribute(client->request, "document-name", IPP_TAG_NAME)) != NULL)
-  {
-    ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name", NULL, ippGetString(attr, 0, NULL));
     ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name-supplied", NULL, ippGetString(attr, 0, NULL));
-  }
-  else
-    ippAddString(job->attrs, IPP_TAG_JOB, IPP_TAG_NAME, "document-name", NULL, "Untitled");
 
   if ((attr = ippFindAttribute(client->request, "document-format", IPP_TAG_MIMETYPE)) != NULL)
     job->format = ippGetString(attr, 0, NULL);