Set content-length field in header

We're not setting the Content-Length field in the header of the HTTP
response. This means that the client has no knowledge about the size of
the content we're sending.

Check the length of the file before sending, and set the field in the
header to that value.

Signed-off-by: Marcus Karlsson <mk@acc.umu.se>