From: msweet Date: Fri, 13 Nov 2015 19:37:47 +0000 (+0000) Subject: Don't treat HTTP/1.x prefix as a response unless we are a client X-Git-Tag: v2.2b1~154 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=be939dc257eb9680b39d25101e55cc31a17d74e9;p=thirdparty%2Fcups.git Don't treat HTTP/1.x prefix as a response unless we are a client () git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12964 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-2.1.txt b/CHANGES-2.1.txt index d2768c96af..568bb48c26 100644 --- a/CHANGES-2.1.txt +++ b/CHANGES-2.1.txt @@ -11,7 +11,8 @@ CHANGES IN CUPS V2.1.1 , , , , , , - , ) + , , + ) - 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) diff --git a/cups/http.c b/cups/http.c index fe8b9aa86b..4d1e7f32b3 100644 --- a/cups/http.c +++ b/cups/http.c @@ -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...