From 852c8042e6521915e507f2e212cbe55f7d1e5928 Mon Sep 17 00:00:00 2001 From: Alexey Zimarev Date: Mon, 27 May 2024 11:43:19 +0100 Subject: [PATCH 1/5] Add Version (#2209) --- src/RestSharp/Request/RestRequest.cs | 5 +++++ src/RestSharp/RestClient.Async.cs | 1 + 2 files changed, 6 insertions(+) diff --git a/src/RestSharp/Request/RestRequest.cs b/src/RestSharp/Request/RestRequest.cs index 40b8e074c..90854652f 100644 --- a/src/RestSharp/Request/RestRequest.cs +++ b/src/RestSharp/Request/RestRequest.cs @@ -166,6 +166,11 @@ public RestRequest(Uri resource, Method method = Method.Get) /// Can be used to skip container or root elements that do not have corresponding deserialization targets. /// public string? RootElement { get; set; } + + /// + /// HTTP version for the request. Default is Version11. + /// + public Version Version { get; set; } = HttpVersion.Version11; /// /// When supplied, the function will be called before calling the deserializer diff --git a/src/RestSharp/RestClient.Async.cs b/src/RestSharp/RestClient.Async.cs index 55e02c70c..ce6706216 100644 --- a/src/RestSharp/RestClient.Async.cs +++ b/src/RestSharp/RestClient.Async.cs @@ -113,6 +113,7 @@ async Task ExecuteRequestAsync(RestRequest request, CancellationTo message.Content = requestContent.BuildContent(); message.Headers.Host = Options.BaseHost; message.Headers.CacheControl = request.CachePolicy ?? Options.CachePolicy; + message.Version = request.Version; using var timeoutCts = new CancellationTokenSource(request.Timeout ?? Options.Timeout ?? _defaultTimeout); using var cts = CancellationTokenSource.CreateLinkedTokenSource(timeoutCts.Token, cancellationToken); From f9f6a8654744750835b96dce8f0991e670efacaf Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 12:45:45 +0200 Subject: [PATCH 2/5] Bump AutoFixture from 4.18.0 to 4.18.1 (#2183) Bumps [AutoFixture](https://github.com/AutoFixture/AutoFixture) from 4.18.0 to 4.18.1. - [Release notes](https://github.com/AutoFixture/AutoFixture/releases) - [Commits](https://github.com/AutoFixture/AutoFixture/compare/v4.18.0...v4.18.1) --- updated-dependencies: - dependency-name: AutoFixture dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index fd7ce005e..76cbc0af2 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -31,7 +31,7 @@ - + From 4d3fc8328db1adae39cc0f4b9b0a4e4ec1bcac10 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 12:45:58 +0200 Subject: [PATCH 3/5] Bump JetBrains.Annotations from 2023.2.0 to 2023.3.0 (#2181) Bumps [JetBrains.Annotations](https://github.com/JetBrains/JetBrains.Annotations) from 2023.2.0 to 2023.3.0. - [Commits](https://github.com/JetBrains/JetBrains.Annotations/compare/v2023.2.0...2023.3) --- updated-dependencies: - dependency-name: JetBrains.Annotations dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Directory.Packages.props | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Directory.Packages.props b/Directory.Packages.props index 76cbc0af2..6c9973579 100644 --- a/Directory.Packages.props +++ b/Directory.Packages.props @@ -28,7 +28,7 @@ - + From 385f2137f900d4d68bf9ab94851e16833a90ece1 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 12:46:10 +0200 Subject: [PATCH 4/5] Bump CsvHelper from 30.0.1 to 32.0.3 (#2195) Bumps [CsvHelper](https://github.com/JoshClose/CsvHelper) from 30.0.1 to 32.0.3. - [Commits](https://github.com/JoshClose/CsvHelper/compare/30.0.1...32.0.3) --- updated-dependencies: - dependency-name: CsvHelper dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> From bf027616121f04f4993013dc3e4cc5941f26bea9 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 27 May 2024 12:46:23 +0200 Subject: [PATCH 5/5] Bump dawidd6/action-download-artifact from 3.0.0 to 3.1.4 (#2184) Bumps [dawidd6/action-download-artifact](https://github.com/dawidd6/action-download-artifact) from 3.0.0 to 3.1.4. - [Release notes](https://github.com/dawidd6/action-download-artifact/releases) - [Commits](https://github.com/dawidd6/action-download-artifact/compare/e7466d1a7587ed14867642c2ca74b5bcc1e19a2d...09f2f74827fd3a8607589e5ad7f9398816f540fe) --- updated-dependencies: - dependency-name: dawidd6/action-download-artifact dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- .github/workflows/test-results.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-results.yml b/.github/workflows/test-results.yml index 394bf9dc7..9288e5450 100644 --- a/.github/workflows/test-results.yml +++ b/.github/workflows/test-results.yml @@ -21,7 +21,7 @@ jobs: steps: - name: Download and Extract Artifacts - uses: dawidd6/action-download-artifact@e7466d1a7587ed14867642c2ca74b5bcc1e19a2d + uses: dawidd6/action-download-artifact@09f2f74827fd3a8607589e5ad7f9398816f540fe with: run_id: ${{ github.event.workflow_run.id }} path: artifacts