Commit 37340816 authored by baire's avatar baire
Browse files

match the CRLF after a Response line

parent d6f0bfb2
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -896,4 +896,12 @@ void UndefinedHeader::PreDecodeField (int id, Buffer& buffer) throw (DecodeError
	}
}

void StatusLine::PostDecode (Buffer& buffer) throw (DecodeError)
{
	static Regex reg_crlf ("^\r\n");

	reg_crlf.AssertMatch(buffer, this);
	reg_crlf.MovePast(buffer);
}

}} // namespaces