Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #45 from microsoft/feature/multi-valued-headers
Browse files Browse the repository at this point in the history
- adds support for multi-valued headers
  • Loading branch information
baywet authored Dec 14, 2022
2 parents 67bfa12 + daa747f commit dde9540
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Changed

## [1.0.0-preview.5] - 2022-12-12

### Changed

- Updates abstractions reference to add support for multi-valued headers.

## [1.0.0-preview.4] - 2022-09-19

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public async Task AuthenticateRequestAsyncSetsBearerHeader(string url, string ex
{
Assert.NotEmpty(testRequest.Headers); // header collection is no longer empty
Assert.Equal("Authorization", testRequest.Headers.First().Key); // First element is Auth header
Assert.Equal($"Bearer {expectedToken}", testRequest.Headers.First().Value); // First element is Auth header
Assert.Equal($"Bearer {expectedToken}", testRequest.Headers["Authorization"].First()); // First element is Auth header
}
}

Expand Down
6 changes: 3 additions & 3 deletions src/Microsoft.Kiota.Authentication.Azure.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<Deterministic>true</Deterministic>
<VersionPrefix>1.0.0</VersionPrefix>
<VersionSuffix>preview.4</VersionSuffix>
<VersionSuffix>preview.5</VersionSuffix>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<!-- Enable this line once we go live to prevent breaking changes -->
Expand All @@ -23,7 +23,7 @@
<DelaySign>false</DelaySign>
<AssemblyOriginatorKeyFile>35MSSharedLib1024.snk</AssemblyOriginatorKeyFile>
<PackageReleaseNotes>
- Added tracing through Open Telemetry.
- Added multi-value headers support.
</PackageReleaseNotes>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE</PackageLicenseFile>
Expand All @@ -32,7 +32,7 @@
<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All" />
<PackageReference Include="Azure.Core" Version="1.26.0" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.0.0-preview.18" />
<PackageReference Include="Microsoft.Kiota.Abstractions" Version="1.0.0-preview.19" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="7.0.0" />
</ItemGroup>

Expand Down

0 comments on commit dde9540

Please sign in to comment.