35329. MultiMixed converter was stripping *all* whitespace from header values, now it is just compressing it off the ends.

This commit is contained in:
valeski%netscape.com 2000-05-03 21:14:39 +00:00
Родитель 7c1af58b0a
Коммит 280b8abd8d
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -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")) {