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

Commit 02a538a

Browse files
committed
chore: additional formatting
Signed-off-by: Vincent Biret <[email protected]>
1 parent 3ec91bf commit 02a538a

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

kiota_http/middleware/redirect_handler.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,10 @@ def _redirect_url(
174174
except Exception as exc:
175175
raise Exception(f"Invalid URL in location header: {exc}.")
176176

177-
if (not url.is_relative_url
178-
and url.scheme != request.url.scheme
179-
and not options.allow_redirect_on_scheme_change):
177+
if (
178+
not url.is_relative_url and url.scheme != request.url.scheme
179+
and not options.allow_redirect_on_scheme_change
180+
):
180181
raise Exception(
181182
"Redirects with changing schemes not allowed by default.\
182183
You can change this by modifying the allow_redirect_on_scheme_change\

0 commit comments

Comments
 (0)