]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Fix response from Create-Xxx-Subscriptions request to include all Subscription object...
authorMichael R Sweet <msweet@msweet.org>
Wed, 26 Mar 2025 19:59:20 +0000 (15:59 -0400)
committerMichael R Sweet <msweet@msweet.org>
Wed, 26 Mar 2025 19:59:20 +0000 (15:59 -0400)
scheduler/ipp.c

index 34207ae00e5ab455b8aa6e6d5ab24a6745771272..26c4a3232969f2ee32b304425ef2f9e3ad058b67 100644 (file)
@@ -1,7 +1,7 @@
 /*
  * IPP routines for the CUPS scheduler.
  *
- * Copyright © 2020-2024 by OpenPrinting
+ * Copyright © 2020-2025 by OpenPrinting
  * Copyright © 2007-2021 by Apple Inc.
  * Copyright © 1997-2007 by Easy Software Products, all rights reserved.
  *
@@ -6101,8 +6101,7 @@ create_subscriptions(
     }
 
     ippAddSeparator(con->response);
-    ippAddInteger(con->response, IPP_TAG_SUBSCRIPTION, IPP_TAG_INTEGER,
-                  "notify-subscription-id", sub->id);
+    copy_subscription_attrs(con, sub, /*ra*/NULL, /*exclude*/NULL);
 
     con->response->request.status.status_code = IPP_STATUS_OK;