Commit e7fef283 authored by baire's avatar baire
Browse files

match the CRLF at the end of RequestLine

parent 364f87db
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -455,6 +455,14 @@ void RequestLine::PreDecodeField (int id, Buffer& buffer) throw (DecodeError)
	}
}

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

	reg_crlf.AssertMatch (buffer, this);
	buffer.SetPosition(buffer.GetPosition() + reg_crlf.GetMatchedLength());
}

const char* Method::msSipMethods[] = { 
	"ACK_E",
	"BYE_E",