File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -1743,6 +1743,12 @@ public override async Task<bool> CheckHealthAsync(CancellationToken cancellation
1743
1743
{
1744
1744
var path = "/v1.0/healthz" ;
1745
1745
var request = new HttpRequestMessage ( HttpMethod . Get , new Uri ( this . httpEndpoint , path ) ) ;
1746
+
1747
+ if ( this . apiTokenHeader is not null )
1748
+ {
1749
+ request . Headers . Add ( this . apiTokenHeader . Value . Key , this . apiTokenHeader . Value . Value ) ;
1750
+ }
1751
+
1746
1752
try
1747
1753
{
1748
1754
using var response = await this . httpClient . SendAsync ( request , HttpCompletionOption . ResponseHeadersRead , cancellationToken ) ;
@@ -1759,6 +1765,12 @@ public override async Task<bool> CheckOutboundHealthAsync(CancellationToken canc
1759
1765
{
1760
1766
var path = "/v1.0/healthz/outbound" ;
1761
1767
var request = new HttpRequestMessage ( HttpMethod . Get , new Uri ( this . httpEndpoint , path ) ) ;
1768
+
1769
+ if ( this . apiTokenHeader is not null )
1770
+ {
1771
+ request . Headers . Add ( this . apiTokenHeader . Value . Key , this . apiTokenHeader . Value . Value ) ;
1772
+ }
1773
+
1762
1774
try
1763
1775
{
1764
1776
using var response = await this . httpClient . SendAsync ( request , HttpCompletionOption . ResponseHeadersRead , cancellationToken ) ;
You can’t perform that action at this time.
0 commit comments