Recalculate content-length

It is needed according to
https://github.com/django/django/blob/master/django/middleware/gzip.py#L46