See https://github.com/dimagi/dimagi-utils/pull/101/files#r4652575, then you don't need to include the content-type and content-length headers here.