]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
cupsDoIORequest could miss the server status, causing failed lpadmin and other admini...
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 5 Mar 2014 18:51:44 +0000 (18:51 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Wed, 5 Mar 2014 18:51:44 +0000 (18:51 +0000)
Look for 100-continue or lower, and get the final status code if so.

git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11680 a1ca3aef-8c08-0410-bb20-df032aa958be

CHANGES-1.7.txt
cups/request.c

index c8e3da042eff56956ba152d810a8999c3fe928f0..b6e6e67af48ae90cb05af5db879d3bcdcbf592f4 100644 (file)
@@ -6,7 +6,10 @@ CHANGES IN CUPS V1.7.2
        - Security: The scheduler now blocks URLs containing embedded HTML
          (STR #4356)
        - Documentation fixes (STR #3259, STR #4346)
+       - Fixed the Japanese localization (STR #4385)
        - Added a German localization (STR #4363)
+       - cupsDoIORequest could miss the server status, causing failed lpadmin
+         and other administrative commands (STR #4386)
        - cupsEnumDests didn't always call the callback function (STR #4380)
        - "lp -i job-id -H hold" did not work (STR #nnn)
        - CUPS didn't compile on older platforms (STR #4338)
index 2f909f392245f36f856127882bc2e2fe052d165e..f4e7e8892b56e49c11b827606f2f31e3452a8886 100644 (file)
@@ -245,7 +245,7 @@ cupsDoIORequest(http_t     *http,   /* I - Connection to server or @code CUPS_HTTP
     * Get the server's response...
     */
 
-    if (status != HTTP_STATUS_ERROR)
+    if (status <= HTTP_STATUS_CONTINUE)
     {
       response = cupsGetResponse(http, resource);
       status   = httpGetStatus(http);