summaryrefslogtreecommitdiff
path: root/cups/http.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-11-13 19:37:47 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2015-11-13 19:37:47 +0000
commitbe939dc257eb9680b39d25101e55cc31a17d74e9 (patch)
tree900c667df5b9103ce72c9aa7f3cdd99920017270 /cups/http.c
parenteb93498a8c4bde2c0d531a5bc00bae775f2f76ac (diff)
downloadcups-be939dc257eb9680b39d25101e55cc31a17d74e9.tar.gz
Don't treat HTTP/1.x prefix as a response unless we are a client
(<rdar://problem/23144290>) git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12964 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'cups/http.c')
-rw-r--r--cups/http.c2
1 files changed, 1 insertions, 1 deletions
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...