Send amount of data set in content-length

This prevents errors where data.available() provides a different length than indicated in the Content-Length header