From bf29aa88239cbf4904c1e16d659ea0a1fbb79f90 Mon Sep 17 00:00:00 2001 From: maliming Date: Tue, 1 Dec 2020 15:24:48 +0800 Subject: [PATCH 1/2] Handle the case where stringContent is empty. --- .../Client/DynamicProxying/DynamicHttpProxyInterceptor.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/DynamicHttpProxyInterceptor.cs b/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/DynamicHttpProxyInterceptor.cs index 59bb7d67b6..48ba2f1a4f 100644 --- a/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/DynamicHttpProxyInterceptor.cs +++ b/framework/src/Volo.Abp.Http.Client/Volo/Abp/Http/Client/DynamicProxying/DynamicHttpProxyInterceptor.cs @@ -121,7 +121,12 @@ namespace Volo.Abp.Http.Client.DynamicProxying return (T)(object)stringContent; } - return JsonSerializer.Deserialize(await responseContent.ReadAsStringAsync()); + if (stringContent.IsNullOrWhiteSpace()) + { + return default; + } + + return JsonSerializer.Deserialize(stringContent); } private async Task MakeRequestAsync(IAbpMethodInvocation invocation) From b95c8d1bfb3f825e3819122775a746dc349a800a Mon Sep 17 00:00:00 2001 From: Alper Ebicoglu Date: Tue, 1 Dec 2020 10:25:33 +0300 Subject: [PATCH 2/2] Update Domain-Driven-Design-Implementation-Guide.md --- docs/en/Domain-Driven-Design-Implementation-Guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/en/Domain-Driven-Design-Implementation-Guide.md b/docs/en/Domain-Driven-Design-Implementation-Guide.md index b5f07826f2..9341df703b 100644 --- a/docs/en/Domain-Driven-Design-Implementation-Guide.md +++ b/docs/en/Domain-Driven-Design-Implementation-Guide.md @@ -1971,8 +1971,8 @@ Application Services can directly work with repositories to query, create, updat ## Reference Books -If you are seriously interest in the Domain Driven Design and building large-scale enterprise systems, the following books are recommended as reference books; +If you are more interested in the Domain Driven Design and building large-scale enterprise systems, the following books are recommended as reference books; * "*Domain Driven Design*" by Eric Evans * "*Implementing Domain Driven Design*" by Vaughn Vernon -* "*Clean Architecture*" by Robert C. Martin \ No newline at end of file +* "*Clean Architecture*" by Robert C. Martin