]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Use /printers/foo for the resource instead of /.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 19 Oct 2012 18:20:33 +0000 (18:20 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 19 Oct 2012 18:20:33 +0000 (18:20 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@10653 7a7537e8-13f0-0310-91df-b6672ffda945

cups/util.c

index 75ada5e4233d99d417e474ab8a86fa239410bfd1..e4d65bc94644d14e7c2e9e2a6eb0b5738a6860bc 100644 (file)
@@ -1695,7 +1695,9 @@ cups_get_printer_uri(
   * Do the request and get back a response...
   */
 
-  if ((response = cupsDoRequest(http, request, "/")) != NULL)
+  snprintf(resource, resourcesize, "/printers/%s", name);
+
+  if ((response = cupsDoRequest(http, request, resource)) != NULL)
   {
     const char *device_uri = NULL;     /* device-uri value */