From be939dc257eb9680b39d25101e55cc31a17d74e9 Mon Sep 17 00:00:00 2001 From: msweet Date: Fri, 13 Nov 2015 19:37:47 +0000 Subject: [PATCH] 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 --- CHANGES-2.1.txt | 3 ++- cups/http.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGES-2.1.txt b/CHANGES-2.1.txt index d2768c96a..568bb48c2 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 fe8b9aa86..4d1e7f32b 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... -- 2.39.2