]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Force HTTP state when sending a response (possible fix for Issue #4901)
authorMichael R Sweet <michaelrsweet@gmail.com>
Thu, 5 Jan 2017 16:33:35 +0000 (11:33 -0500)
committerMichael R Sweet <michaelrsweet@gmail.com>
Thu, 5 Jan 2017 16:36:14 +0000 (11:36 -0500)
cups/http.c

index b3abbe73e0d02e9951599dfc3a5bcd72a5053692..762ec80343b038fb5d1c021e59b92929b23ae717 100644 (file)
@@ -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...