File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
mods/edgeport/src/main/java/io/routr/headers Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,11 @@ public Authorization fromDTO(io.routr.message.Authorization dto)
56
56
HeaderFactory factory = SipFactory .getInstance ().createHeaderFactory ();
57
57
AddressFactory addrFactory = SipFactory .getInstance ().createAddressFactory ();
58
58
Authorization header = (Authorization ) factory .createAuthorizationHeader (dto .getScheme ());
59
- header . setNonceCount ( dto . getNonceCount ());
59
+
60
60
header .setRealm (dto .getRealm ());
61
61
header .setOpaque (dto .getOpaque ());
62
62
63
+ if (dto .getNonceCount () > -1 ) header .setNonceCount (dto .getNonceCount ());
63
64
if (!dto .getNonce ().isEmpty ()) header .setNonce (dto .getNonce ());
64
65
if (!dto .getCNonce ().isEmpty ()) header .setCNonce (dto .getCNonce ());
65
66
if (!dto .getAlgorithm ().isEmpty ()) header .setAlgorithm (dto .getAlgorithm ());
You can’t perform that action at this time.
0 commit comments