Skip to content

Commit

Permalink
修复 QPay、WeChatPay 双向证书请求冲突的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Roc committed Jul 3, 2019
1 parent bb24153 commit 695ddb7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ public Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuil
throw new ArgumentNullException(nameof(next));
}

return builder =>
return (builder) =>
{
next(builder);
if (builder.PrimaryHandler is HttpClientHandler handler)
{
if (builder.Name.Contains(QPayClient.Prefix))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,10 @@ public Action<HttpMessageHandlerBuilder> Configure(Action<HttpMessageHandlerBuil
throw new ArgumentNullException(nameof(next));
}

return builder =>
return (builder) =>
{
next(builder);
if (builder.PrimaryHandler is HttpClientHandler handler)
{
if (builder.Name.Contains(WeChatPayClient.Prefix))
Expand Down

0 comments on commit 695ddb7

Please sign in to comment.