зеркало из https://github.com/mozilla/gecko-dev.git
35329. MultiMixed converter was stripping *all* whitespace from header values, now it is just compressing it off the ends.
This commit is contained in:
Родитель
7c1af58b0a
Коммит
280b8abd8d
|
@ -467,14 +467,14 @@ nsMultiMixedConv::ParseHeaders(nsIChannel *aChannel, char *&aPtr,
|
|||
if (colon) {
|
||||
*colon = '\0';
|
||||
nsCAutoString headerStr(cursor);
|
||||
headerStr.StripWhitespace();
|
||||
headerStr.CompressWhitespace();
|
||||
headerStr.ToLowerCase();
|
||||
nsCOMPtr<nsIAtom> header = NS_NewAtom(headerStr.GetBuffer());
|
||||
if (!header) return NS_ERROR_OUT_OF_MEMORY;
|
||||
*colon = ':';
|
||||
|
||||
nsCAutoString headerVal(colon + 1);
|
||||
headerVal.StripWhitespace();
|
||||
headerVal.CompressWhitespace();
|
||||
|
||||
// examine header
|
||||
if (headerStr.Equals("content-type")) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче