Skip to content

Commit

Permalink
Added default values for plugin-name & plugin-version header. (#65)
Browse files Browse the repository at this point in the history
* Added default values for plugin-name & plugin-version header.
acme-plugin and 0.0.1 respectively.
  • Loading branch information
flinkgutt authored Dec 21, 2023
1 parent feee67e commit 5785e12
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
14 changes: 12 additions & 2 deletions src/Vipps.net/Infrastructure/VippsHttpClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,18 @@ private Dictionary<string, string> GetHeaders()
{ "Vipps-System-Name", assemblyName.Name },
{ "Vipps-System-Version", assemblyVersion },
{ "Merchant-Serial-Number", _options.MerchantSerialNumber },
{ "Vipps-System-Plugin-Name", _options.PluginName },
{ "Vipps-System-Plugin-Version", _options.PluginVersion }
{
"Vipps-System-Plugin-Name",
string.IsNullOrWhiteSpace(_options.PluginName)
? "acme-plugin"
: _options.PluginName
},
{
"Vipps-System-Plugin-Version",
string.IsNullOrWhiteSpace(_options.PluginVersion)
? "0.0.1"
: _options.PluginVersion
}
};
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Vipps.net/Vipps.net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<Product>Vipps.net</Product>
<Description>Vipps.net SDK</Description>
<PackageId>Vipps.net</PackageId>
<Version>0.9.5</Version>
<Version>0.9.6</Version>
<Authors>Vipps Mobilepay AS</Authors>
<Company>Vipps Mobilepay AS</Company>
<Title>Vipps SDK .Net</Title>
Expand Down

0 comments on commit 5785e12

Please sign in to comment.