diff --git a/src/Directory.Build.props b/src/Directory.Build.props index e91f3e3..135e511 100644 --- a/src/Directory.Build.props +++ b/src/Directory.Build.props @@ -9,7 +9,7 @@ true snupkg $(SolutionDir)nupkgs - 1.0.6 + 1.0.6.1 $(Version) 百小僧 HttpAgent 是一个高性能、灵活且易用的开源库,提供了全面的 HTTP 功能支持,包括文件传输、轮询、测试工具、实时通信、请求管理、Media 类型处理、MessagePack 支持等,并具有低资源消耗和高测试覆盖率的特点。 diff --git a/src/HttpAgent/test/HttpRemoteServiceTests.cs b/src/HttpAgent/test/HttpRemoteServiceTests.cs index 967dbcb..d509957 100644 --- a/src/HttpAgent/test/HttpRemoteServiceTests.cs +++ b/src/HttpAgent/test/HttpRemoteServiceTests.cs @@ -88,7 +88,7 @@ public void CreateHttpClientWithDefaults_ReturnOK() Assert.NotNull(httpClient); Assert.Null(httpClientPooling.Release); - Assert.Equal("HttpAgent/1.0.6.0", httpClient.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient.DefaultRequestHeaders.GetValues("User-Agent").First()); var httpRequestBuilder2 = new HttpRequestBuilder(HttpMethod.Get, new Uri("/api/test", UriKind.RelativeOrAbsolute)) @@ -99,7 +99,7 @@ public void CreateHttpClientWithDefaults_ReturnOK() Assert.NotNull(httpClient2.BaseAddress); Assert.Equal("http://localhost/test/", httpClient2.BaseAddress.ToString()); Assert.Null(httpClientPooling2.Release); - Assert.Equal("HttpAgent/1.0.6.0", httpClient2.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient2.DefaultRequestHeaders.GetValues("User-Agent").First()); var httpClient3 = new HttpClient { BaseAddress = new Uri("http://localhost/custom") }; var httpRequestBuilder3 = @@ -112,7 +112,7 @@ public void CreateHttpClientWithDefaults_ReturnOK() var httpClientPooling3 = httpRemoteService.CreateHttpClientWithDefaults(httpRequestBuilder3); var httpClient4 = httpClientPooling3.Instance; Assert.Equal(httpClient3, httpClient4); - Assert.Equal("HttpAgent/1.0.6.0", httpClient4.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient4.DefaultRequestHeaders.GetValues("User-Agent").First()); Assert.NotNull(httpClientPooling3.Release); httpClientPooling3.Release(httpClient3); @@ -153,7 +153,7 @@ public void CreateHttpClientPooling_ReturnOK() Assert.NotNull(httpClient); Assert.Null(httpClientPooling.Release); - Assert.Equal("HttpAgent/1.0.6.0", httpClient.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient.DefaultRequestHeaders.GetValues("User-Agent").First()); var httpRequestBuilder2 = new HttpRequestBuilder(HttpMethod.Get, new Uri("/api/test", UriKind.RelativeOrAbsolute)) @@ -164,7 +164,7 @@ public void CreateHttpClientPooling_ReturnOK() Assert.NotNull(httpClient2.BaseAddress); Assert.Equal("http://localhost/test/", httpClient2.BaseAddress.ToString()); Assert.Null(httpClientPooling2.Release); - Assert.Equal("HttpAgent/1.0.6.0", httpClient2.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient2.DefaultRequestHeaders.GetValues("User-Agent").First()); var httpClient3 = new HttpClient { BaseAddress = new Uri("http://localhost/custom") }; var httpRequestBuilder3 = @@ -177,7 +177,7 @@ public void CreateHttpClientPooling_ReturnOK() var httpClientPooling3 = httpRemoteService.CreateHttpClientPooling(httpRequestBuilder3); var httpClient4 = httpClientPooling3.Instance; Assert.Equal(httpClient3, httpClient4); - Assert.Equal("HttpAgent/1.0.6.0", httpClient4.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient4.DefaultRequestHeaders.GetValues("User-Agent").First()); Assert.NotNull(httpClientPooling3.Release); httpClientPooling3.Release(httpClient3); @@ -190,7 +190,7 @@ public void AddDefaultUserAgentHeader_ReturnOK() var httpClient = new HttpClient(); HttpRemoteService.AddDefaultUserAgentHeader(httpClient); - Assert.Equal("HttpAgent/1.0.6.0", httpClient.DefaultRequestHeaders.GetValues("User-Agent").First()); + Assert.Equal("HttpAgent/1.0.6.1", httpClient.DefaultRequestHeaders.GetValues("User-Agent").First()); var httpClient2 = new HttpClient(); httpClient2.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "furion");