add kiota retry to http_wrapper (#3468)

#### Does this PR need a docs update or release note?

- [x]  No

#### Type of change

- [x] 🐛 Bugfix

#### Test Plan

- [x]  Unit test
- [x] 💚 E2E
This commit is contained in:
Keepers 2023-05-22 10:40:03 -06:00 committed by GitHub
parent 8bb9df8e75
commit 33f7915c0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -145,6 +145,7 @@ func internalMiddleware(cc *clientConfig) []khttp.Middleware {
MaxRetries: cc.maxRetries, MaxRetries: cc.maxRetries,
Delay: cc.minDelay, Delay: cc.minDelay,
}, },
khttp.NewRetryHandler(),
khttp.NewRedirectHandler(), khttp.NewRedirectHandler(),
&LoggingMiddleware{}, &LoggingMiddleware{},
&throttlingMiddleware{newTimedFence()}, &throttlingMiddleware{newTimedFence()},