Fix a bug due to which setting a custom Content-Type header in the Request led to multiple Content-Types being set on the sent XMLHttpRequest: first the detected content type based on the request body, followed by the custom set content type. Fix #9130.