- From: Thomas Wisniewski <notifications@github.com>
- Date: Mon, 16 Oct 2017 03:21:37 +0000 (UTC)
- To: whatwg/xhr <xhr@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Monday, 16 October 2017 03:22:00 UTC
Per spec (first line is from the XHR spec; others are from Fetch spec which it links to): >A request has an associated header list (a header list). Unless stated otherwise it is empty. >A header list consists of zero or more headers. >A header consists of a name and value. >A value is a byte sequence that matches the following conditions: > - Has no leading or trailing HTTP whitespace bytes. > - Contains no 0x00, 0x0A or 0x0D bytes. Apparently only Firefox goes against the spec and supports null bytes for XMLHttpRequests (but not Fetch in general): https://wptdashboard.appspot.com/XMLHttpRequest/headers-normalize-response.htm Should the tests be changed to reflect the spec, or the spec (and other browsers) updated to match Firefox? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/xhr/issues/165
Received on Monday, 16 October 2017 03:22:00 UTC