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:
dougt%meer.net 2003-06-03 21:21:53 +00:00
Родитель 3425656a04
Коммит 6601094085
1 изменённых файлов: 4 добавлений и 0 удалений

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

@ -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;