adjust content-length to account for pretty print