Setting just the Content-Type seems more reliable.