Skip to content

Commit

Permalink
fix: remove unnecessary memory allocation (#784)
Browse files Browse the repository at this point in the history
Closes #781
  • Loading branch information
FantasticFiasco committed Mar 29, 2023
1 parent 53f5aa4 commit ec90a7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ This project adheres to [Semantic Versioning](http://semver.org/) and is followi

## Unreleased

### :syringe: Fixed

- [#781](https://github.com/FantasticFiasco/aws-signature-version-4/issues/781) Remove unnecessary memory allocation (contribution by [@AgusMarquezUala](https://github.com/AgusMarquezUala))

## [4.0.0] - 2022-03-25

### :zap: Added
Expand Down Expand Up @@ -59,9 +63,9 @@ This project adheres to [Semantic Versioning](http://semver.org/) and is followi

- [#458](https://github.com/FantasticFiasco/aws-signature-version-4/issues/458) [BREAKING CHANGE] Improve support for AWS credentials inheriting from `Amazon.Runtime.AWSCredentials` (proposed by [@cliff-wakefield-acurus](https://github.com/cliff-wakefield-acurus))

**Migration guide**
**Migration guide**

All properties of class `AwsSignatureHandlerSettings` have had their access modifiers changed from `public` to `internal`, thus the properties have been removed from the public API. If you experience a compilation error because of this, please refactor your code to access `RegionName`, `ServiceName` and the AWS credentials by other means.
All properties of class `AwsSignatureHandlerSettings` have had their access modifiers changed from `public` to `internal`, thus the properties have been removed from the public API. If you experience a compilation error because of this, please refactor your code to access `RegionName`, `ServiceName` and the AWS credentials by other means.

## [1.4.1] - 2021-06-09

Expand Down
2 changes: 1 addition & 1 deletion src/AwsSignatureHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ namespace AwsSignatureVersion4
public class AwsSignatureHandler : DelegatingHandler
{
private static readonly KeyValuePair<string, IEnumerable<string>>[] EmptyRequestHeaders =
new KeyValuePair<string, IEnumerable<string>>[0];
Array.Empty<KeyValuePair<string, IEnumerable<string>>>();

private readonly AwsSignatureHandlerSettings settings;

Expand Down

0 comments on commit ec90a7b

Please sign in to comment.