Bug 18772 - Should getAllResponseHeaders() end with \r\n?
Summary: Should getAllResponseHeaders() end with \r\n?
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: XHR (show other bugs)
Version: unspecified
Hardware: All All
: P2 normal
Target Milestone: ---
Assignee: Anne
QA Contact: public-webapps-bugzilla
Whiteboard: needs test
Depends on:
Reported: 2012-09-04 18:46 UTC by Ms2ger
Modified: 2012-10-09 17:27 UTC (History)
2 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Ms2ger 2012-09-04 18:46:07 UTC
The spec says

> Return all the HTTP headers, excluding headers that are a case-insensitive
> match for Set-Cookie or Set-Cookie2, as a single string, with each header
> line separated by a U+000D CR U+000A LF pair, excluding the status line,
> and with each header name and header value separated by a U+003A COLON
> U+0020 SPACE pair.

That seems to suggest "no", but is that intentional?
Comment 1 Anne 2012-10-09 14:59:08 UTC
Yes. Makes splitting work better. Might want to test this though, but that is not a bug in the standard.