Skip to content

Commit

Permalink
Fix InvalidOperationException when _disableHttp2 is null
Browse files Browse the repository at this point in the history
Fix InvalidOperationException when _disableHttp2 is null
  • Loading branch information
TsinghuaDream authored and yndu13 committed Jun 19, 2024
1 parent af6a50b commit 7b51e4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions csharp/core/Client.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2149,7 +2149,7 @@ public Client(Config config)
{"period", AlibabaCloud.TeaUtil.Common.DefaultNumber(runtime.BackoffPeriod, 1)},
}},
{"ignoreSSL", runtime.IgnoreSSL},
{"disableHttp2", DefaultAny(_disableHttp2.Value, false)},
{"disableHttp2", DefaultAny(_disableHttp2, false)},
};

TeaRequest _lastRequest = null;
Expand Down Expand Up @@ -2327,7 +2327,7 @@ public Client(Config config)
{"period", AlibabaCloud.TeaUtil.Common.DefaultNumber(runtime.BackoffPeriod, 1)},
}},
{"ignoreSSL", runtime.IgnoreSSL},
{"disableHttp2", DefaultAny(_disableHttp2.Value, false)},
{"disableHttp2", DefaultAny(_disableHttp2, false)},
};

TeaRequest _lastRequest = null;
Expand Down

0 comments on commit 7b51e4c

Please sign in to comment.