Skip to content

Commit 16c40d0

Browse files
committed
Fix the invalid extraHeaders in Registrator.
1 parent 862ca32 commit 16c40d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/src/registrator.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ class Registrator {
111111
return;
112112
}
113113

114-
var extraHeaders = [];
114+
var extraHeaders = _extraHeaders ?? [];
115115

116116
extraHeaders.add(
117117
'Contact: ${this._contact};expires=${this._expires}${this._extraContactParams}');
@@ -274,7 +274,7 @@ class Registrator {
274274
this._registrationTimer = null;
275275
}
276276

277-
var extraHeaders = [];
277+
var extraHeaders = _extraHeaders ?? [];
278278

279279
if (unregister_all) {
280280
extraHeaders.add('Contact: *${this._extraContactParams}');

0 commit comments

Comments
 (0)