]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - cups/request.c
Import changes from CUPS 1.4.1 (r8801)
[thirdparty/cups.git] / cups / request.c
index 6eacf7925065ecbfeb39ee5460924b27d2b4bf25..722dcdf0f8b0d6ed22106471c9b0aaded723bb19 100644 (file)
@@ -266,7 +266,9 @@ cupsDoIORequest(http_t     *http,   /* I - Connection to server or @code CUPS_HTTP
 
     DEBUG_printf(("2cupsDoIORequest: status=%d", status));
 
-    if (status == HTTP_FORBIDDEN || status >= HTTP_SERVER_ERROR)
+    if (status >= HTTP_BAD_REQUEST &&
+       status != HTTP_UNAUTHORIZED &&
+       status != HTTP_UPGRADE_REQUIRED)
     {
       httpFlush(http);
       _cupsSetHTTPError(status);