Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion DevBase.Net/Core/RequestConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ public Request WithHttpVersion(Version version, HttpVersionPolicy policy = HttpV
/// Configures the request to use HTTP/1.1.
/// </summary>
/// <returns>The request instance for method chaining.</returns>
public Request AsHttp11() => this.WithHttpVersion(System.Net.HttpVersion.Version11);
public Request AsHttp1() => this.WithHttpVersion(System.Net.HttpVersion.Version11);

/// <summary>
/// Configures the request to use HTTP/2.
Expand Down
2 changes: 1 addition & 1 deletion DevBase.Net/DevBase.Net.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
<PackageProjectUrl>https://github.com/AlexanderDotH/DevBase.git</PackageProjectUrl>
<RepositoryUrl>https://github.com/AlexanderDotH/DevBase.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Version>1.4.0</Version>
<Version>1.4.2</Version>
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>http;client;requests;proxy;socks5;jwt;authentication;fluent-api;async;retry;rate-limiting;json;html-parsing</PackageTags>
Expand Down
6 changes: 3 additions & 3 deletions DevBase.Test/DevBaseRequests/RequestTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -599,10 +599,10 @@ public void WithHttpVersion_WithPolicy_SetsBoth()
}

[Test]
public void AsHttp11_SetsHttpVersion11()
public void AsHttp1_SetsHttpVersion11()
{
var request = new Request("https://example.com")
.AsHttp11();
.AsHttp1();

Assert.That(request.HttpVersion, Is.EqualTo(HttpVersion.Version11));
}
Expand Down Expand Up @@ -640,7 +640,7 @@ public void HttpVersion_CanBeSwitchedMultipleTimes()
var request = new Request("https://example.com")
.AsHttp3()
.AsHttp2()
.AsHttp11();
.AsHttp1();

Assert.That(request.HttpVersion, Is.EqualTo(HttpVersion.Version11));
}
Expand Down
Loading