]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Don't treat HTTP/1.x prefix as a response unless we are a client
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 13 Nov 2015 19:37:47 +0000 (19:37 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Fri, 13 Nov 2015 19:37:47 +0000 (19:37 +0000)
(<rdar://problem/23144290>)

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

CHANGES-2.1.txt
cups/http.c

index d2768c96afbf8e8245d65d8460da2091f7a62a82..568bb48c263451c8e3a68e4b6baac93ec367e04f 100644 (file)
@@ -11,7 +11,8 @@ CHANGES IN CUPS V2.1.1
          <rdar://problem/23134228>, <rdar://problem/23134299>,
          <rdar://problem/23134356>, <rdar://problem/23134415>,
          <rdar://problem/23134506>, <rdar://problem/23135066>,
-         <rdar://problem/23135122>, <rdar://problem/23135207>)
+         <rdar://problem/23135122>, <rdar://problem/23135207>,
+         <rdar://problem/23144290>)
        - The cupsGetPPD* functions did not work with IPP printers (STR #4725)
        - Some older HP LaserJet printers need a delayed close when printing
          using the libusb-based USB backend (STR #4549)
index fe8b9aa86bcae64e46ee10be8bd8ee4ffb416358..4d1e7f32b3e5ba2398d43f37f39d997594d10385 100644 (file)
@@ -3003,7 +3003,7 @@ _httpUpdate(http_t        *http,  /* I - HTTP connection */
     *status = http->status;
     return (0);
   }
-  else if (!strncmp(line, "HTTP/", 5))
+  else if (!strncmp(line, "HTTP/", 5) && http->mode == _HTTP_MODE_CLIENT)
   {
    /*
     * Got the beginning of a response...