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 955ce97 commit 4f7f240Copy full SHA for 4f7f240
include/netlicensing/converters.h
@@ -109,7 +109,12 @@ namespace netlicensing {
109
inline parameters_type toParametersList<Token>(Token value) {
110
parameters_type params = toParametersList<BaseEntity>(value);
111
params.push_back(std::make_pair(VENDOR_NUMBER, value.getVendorNumber()));
112
- params.push_back(std::make_pair(EXPIRATION_TIME, value.getExpirationTime().toString()));
+
113
+ const std::string expirationTime = value.getExpirationTime().toString();
114
+ if (!expirationTime.empty()) {
115
+ params.push_back(std::make_pair(EXPIRATION_TIME, expirationTime));
116
+ }
117
118
params.push_back(std::make_pair(TOKEN_TYPE, tokenTypeToString(value.getTokenType())));
119
return params;
120
}
0 commit comments