use getCustomHeaders() instead of getHeaders() so content-length is not set manually