зеркало из https://github.com/mozilla/gecko-dev.git
fixes bug 103757 "'headerless' http for ad banner does not load"
r=bbaetz,badami sr=mscott
This commit is contained in:
Родитель
6726aa05f8
Коммит
8a60343874
|
@ -423,7 +423,7 @@ nsHttpTransaction::ParseHead(char *buf,
|
|||
// this must be the first time we've been called.
|
||||
if (!mHaveStatusLine && mLineBuf.IsEmpty()) {
|
||||
// tolerate some junk before the status line
|
||||
char *p = LocateHttpStart(buf, PR_MIN(count, 32));
|
||||
char *p = LocateHttpStart(buf, PR_MIN(count, 8));
|
||||
if (!p) {
|
||||
mResponseHead->ParseStatusLine("");
|
||||
mHaveStatusLine = PR_TRUE;
|
||||
|
@ -433,7 +433,6 @@ nsHttpTransaction::ParseHead(char *buf,
|
|||
if (p > buf) {
|
||||
// skip over the junk
|
||||
*countRead = p - buf;
|
||||
count -= *countRead;
|
||||
buf = p;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче