summaryrefslogtreecommitdiff
path: root/cups/http.c
diff options
context:
space:
mode:
authorMichael R Sweet <michaelrsweet@gmail.com>2017-01-05 11:33:35 -0500
committerMichael R Sweet <michaelrsweet@gmail.com>2017-01-05 11:36:14 -0500
commita2f30a72f7e1d4673e3720a41f28480e9cc21c48 (patch)
tree337b00a89ff32ba9ebc8010fdb0c2ace3e2b1a94 /cups/http.c
parent3942a9c815a17e3803aa7b505876a1a09c6559d1 (diff)
downloadcups-a2f30a72f7e1d4673e3720a41f28480e9cc21c48.tar.gz
Force HTTP state when sending a response (possible fix for Issue #4901)
Diffstat (limited to 'cups/http.c')
-rw-r--r--cups/http.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cups/http.c b/cups/http.c
index b3abbe73e..762ec8034 100644
--- a/cups/http.c
+++ b/cups/http.c
@@ -3667,6 +3667,9 @@ httpWriteResponse(http_t *http, /* I - HTTP connection */
return (0);
}
+ if (http->state == HTTP_STATE_POST_RECV || http->state == HTTP_STATE_GET)
+ http->state ++;
+
#ifdef HAVE_LIBZ
/*
* Then start any content encoding...