@@ -62,7 +62,7 @@ import { FeatureFlagTracingOptions } from "./requestTracing/FeatureFlagTracingOp
6262import { AIConfigurationTracingOptions } from "./requestTracing/AIConfigurationTracingOptions.js" ;
6363import { KeyFilter , LabelFilter , SettingSelector } from "./types.js" ;
6464import { ConfigurationClientManager } from "./ConfigurationClientManager.js" ;
65- import { ETAG_LOOKUP_HEADER } from "./EtagUrlPipelinePolicy .js" ;
65+ import { CDN_TOKEN_LOOKUP_HEADER } from "./CdnTokenPipelinePolicy .js" ;
6666import { getFixedBackoffDuration , getExponentialBackoffDuration } from "./common/backoffUtils.js" ;
6767import { InvalidOperationError , ArgumentError , isFailoverableError , isInputError } from "./common/error.js" ;
6868
@@ -507,7 +507,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
507507 if ( this . #isCdnUsed && selectorCollection . cdnToken ) {
508508 listOptions = {
509509 ...listOptions ,
510- requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
510+ requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
511511 } ;
512512 }
513513 const pageEtags : string [ ] = [ ] ;
@@ -618,7 +618,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
618618 // If CDN is used, add etag to request header so that the pipeline policy can retrieve and append it to the request URL
619619 let getOptions : GetConfigurationSettingOptions = { } ;
620620 if ( this . #isCdnUsed && this . #kvSelectorCollection. cdnToken ) {
621- getOptions = { requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken } } } ;
621+ getOptions = { requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken } } } ;
622622 }
623623 const response = await this . #getConfigurationSetting( sentinel , getOptions ) ;
624624 sentinel . etag = response ?. etag ;
@@ -680,7 +680,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
680680 if ( this . #isCdnUsed && this . #kvSelectorCollection. cdnToken ) {
681681 // if CDN is used, add etag to request header so that the pipeline policy can retrieve and append it to the request URL
682682 getOptions = {
683- requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken ?? "" } } ,
683+ requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : this . #kvSelectorCollection. cdnToken ?? "" } } ,
684684 } ;
685685 }
686686 // send conditional request only when CDN is not used
@@ -754,7 +754,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
754754 // If CDN is used, add etag to request header so that the pipeline policy can retrieve and append it to the request URL
755755 listOptions = {
756756 ...listOptions ,
757- requestOptions : { customHeaders : { [ ETAG_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
757+ requestOptions : { customHeaders : { [ CDN_TOKEN_LOOKUP_HEADER ] : selectorCollection . cdnToken } }
758758 } ;
759759 }
760760
0 commit comments