зеркало из https://github.com/mozilla/gecko-dev.git
Treat any 0.9 style response of a put as a failure. b=193921, r=brade, sr=alecf, a=rjesup
This commit is contained in:
Родитель
3425656a04
Коммит
6601094085
|
@ -619,6 +619,10 @@ nsHttpTransaction::ParseHead(char *buf,
|
|||
// tolerate some junk before the status line
|
||||
char *p = LocateHttpStart(buf, PR_MIN(count, 8));
|
||||
if (!p) {
|
||||
// Treat any 0.9 style response of a put as a failure.
|
||||
if (mRequestHead->Method() == nsHttp::Put)
|
||||
return NS_ERROR_ABORT;
|
||||
|
||||
mResponseHead->ParseStatusLine("");
|
||||
mHaveStatusLine = PR_TRUE;
|
||||
mHaveAllHeaders = PR_TRUE;
|
||||
|
|
Загрузка…
Ссылка в новой задаче