LoginSignup
2
2

More than 5 years have passed since last update.

Backbone.jsのsaveメソッドでサーバに送出されるContent-Typeヘッダーの中身がFirefoxだけ違う

Posted at

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の動作も正しいようです。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2