Skip to content

Commit 24af070

Browse files
committed
Consistent header and 3.0.2
1 parent 26f222c commit 24af070

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
## 3.0.2 - 2021-01-25
2+
* Make version header consistent between SDKs
3+
14
## 3.0.1 - 2021-01-15
25
* Add version and also include in request headers
36

VERSION

0 Bytes
Binary file not shown.

appveyor.yml

0 Bytes
Binary file not shown.

src/stream-net/StreamClient.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ namespace Stream
1111
{
1212
public class StreamClient : IStreamClient
1313
{
14-
readonly string Version = "3.0.1";
14+
static readonly string Version = "3.0.2";
1515

1616
internal const string BaseUrlFormat = "https://{0}-api.stream-io-api.com";
1717
internal const string BaseUrlPath = "/api/v1.0/";
@@ -182,7 +182,7 @@ private RestRequest BuildRestRequest(string fullPath, HttpMethod method, string
182182
var request = new RestRequest(fullPath, method);
183183
request.AddHeader("Authorization", JWToken("*", userID));
184184
request.AddHeader("Stream-Auth-Type", "jwt");
185-
request.AddHeader("X-Stream-Client", "stream-csharp-"+Version);
185+
request.AddHeader("X-Stream-Client", "stream-net-"+Version);
186186
request.AddQueryParameter("api_key", _apiKey);
187187
return request;
188188
}

src/stream-net/stream-net.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
</PropertyGroup>
88
<PropertyGroup>
99
<PackageId>stream-net</PackageId>
10-
<Version>3.0.1</Version>
11-
<PackageVersion>3.0.1</PackageVersion>
10+
<Version>3.0.2</Version>
11+
<PackageVersion>3.0.2</PackageVersion>
1212
<Authors>GetStream.io</Authors>
1313
<Description>Client for getstream.io. Build scalable newsfeeds and activity streams in a few hours instead of weeks.</Description>
1414
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>

0 commit comments

Comments
 (0)