close stdin after writing request body

This commit is contained in:
Stefan Bühler 2013-05-23 17:45:57 +02:00
parent 76ac3d382d
commit b2d707796e
1 changed files with 5 additions and 1 deletions

View File

@ -460,7 +460,11 @@ static void fcgi_cgi_received_stdin(fastcgi_connection *fcon, GByteArray *data)
if (data) g_byte_array_free(data, TRUE);
return;
}
fastcgi_queue_append_bytearray(&cld->write_queue, data);
if (NULL != data) {
fastcgi_queue_append_bytearray(&cld->write_queue, data);
} else {
cld->write_queue.closed = TRUE;
}
write_queue(cld); /* if we don't call this we have to check the write-queue length */
}