XMLHttpRequestでサーバに対して送信するContent-Typeヘッダーの内容は、ブラウザにより以下の様に異なります。
サーバ側でContent-Typeヘッダーにより処理を振り分ける場合は、注意が必要です。
ブラウザ毎の動作
- Chrome
Content-Type: text/plain
- Firefox
Content-Type: text/plain; charset=UTF-8
- IE10
Content-Type: text/plain
- IE9
Content-Type: text/plain
- IE8
Content-Type: text/plain
- IE7
未調査です。
関連情報
仕様としてはFirefoxの動作も正しいようです。