even though it is read to the end. This could lead to problems, so we
make an effort to destroy it here.
*/
- if (conn->incoming_payload != NULL) {
+ if (conn->incoming_payload != NULL &&
+ i_stream_read_eof(conn->incoming_payload)) {
struct http_server_request *req = hsostream->resp->request;
struct istream *payload;
- if (!i_stream_read_eof(conn->incoming_payload))
- i_unreached();
payload = req->req.payload;
req->req.payload = NULL;
i_stream_unref(&payload);
-
- i_assert(conn->incoming_payload == NULL);
}
prev_ioloop = http_server_connection_switch_ioloop_to(conn, ioloop);