Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
Fix bug in changes to redirect handler
Browse files Browse the repository at this point in the history
  • Loading branch information
samwelkanda authored Sep 13, 2023
1 parent ed71c3f commit 105c628
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kiota_http/middleware/redirect_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ async def send(
request = new_request
continue
response.history = self.history
break
if not retryable:
exc = RedirectError(f"Too many redirects. {response.history}")
_redirect_span.record_exception(exc)
_redirect_span.end()
Expand Down

0 comments on commit 105c628

Please sign in to comment.