Commit 15f89f5f authored by urbant's avatar urbant
Browse files

Line break to the end of the status line

parent 9ad923ad
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -557,6 +557,15 @@ void StatusLine::PreDecodeField (int id, Buffer& buffer) throw (DecodeError)
	}
}

void StatusLine::PostDecodeField (int id, Buffer& buffer) throw (DecodeError)
{
	static Regex reg_terminator ("^\\r\\n");
	if (id == id_reasonPhrase) {
		reg_terminator.AssertMatch(buffer, this);
		buffer.SetPosition(buffer.GetPosition() + 16);
	}
}

class SipHeaderMap {
public:
	struct Entry {