in IE, the “X-Requested-With” header of jquery becomes “x-requested-with” (lowercase)

后端 未结 2 1302
醉话见心
醉话见心 2021-02-13 12:38

Why it is converting to lowercase? In Firefox it goes as: \"X-Requested-With\". While in IE, it goes as: \"x-requested-with\"

2条回答
  •  梦谈多话
    2021-02-13 13:17

    The HTTP method is supposed to be case-sensitive, but the HTTP headers are supposed to be case-insensitive, according to RFC 2616.

提交回复
热议问题