We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 356e5d7 commit 38dbab7Copy full SHA for 38dbab7
lib/src/sip_message.dart
@@ -656,8 +656,6 @@ class IncomingRequest extends IncomingMessage {
656
// Validate code and reason values.
657
if (code == null || (code < 100 || code > 699)) {
658
throw Exceptions.TypeError('Invalid status_code: $code');
659
- } else if (reason != null) {
660
- throw Exceptions.TypeError('Invalid reason_phrase: $reason');
661
}
662
663
reason = reason ?? DartSIP_C.REASON_PHRASE[code] ?? '';
0 commit comments