BContentStream::getContentLength hung if stream was empty.

Set the response headers in httpFinished too, httpReadyRead is not
called if stream is empty.
Requests were not removed from internal map