File tree Expand file tree Collapse file tree
Src/Support/Google.Apis.Core/Http Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -655,14 +655,15 @@ bool DisposeAndReturnFalse(IDisposable disposable)
655655 }
656656
657657 return response ;
658- }
659658
660- private void CheckValidAfterInterceptors ( HttpRequestMessage request )
661- {
662- if ( request . Headers . Contains ( QuotaProjectHeaderName ) )
659+ void CheckValidAfterInterceptors ( HttpRequestMessage request )
663660 {
664- throw new InvalidOperationException ( $ "{ QuotaProjectHeaderName } header can only be added through the credential or through the <Product>ClientBuilder.") ;
661+ if ( triesRemaining == maxRetries && request . Headers . Contains ( QuotaProjectHeaderName ) )
662+ {
663+ throw new InvalidOperationException ( $ "{ QuotaProjectHeaderName } header can only be added through the credential or through the <Product>ClientBuilder.") ;
664+ }
665665 }
666+
666667 }
667668
668669 private async Task CredentialInterceptAsync ( HttpRequestMessage request , CancellationToken cancellationToken )
You can’t perform that action at this time.
0 commit comments