Skip to content

Commit 1ff199a

Browse files
committed
format
1 parent a6d9e84 commit 1ff199a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/AsyncHTTPClient/HTTPHandler.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -637,7 +637,7 @@ internal struct RedirectHandler<T> {
637637
return nil
638638
}
639639

640-
guard HTTPClient.Request.isSchemeSupported(scheme: request.scheme) else {
640+
guard HTTPClient.Request.isSchemeSupported(scheme: self.request.scheme) else {
641641
return nil
642642
}
643643

@@ -652,9 +652,9 @@ internal struct RedirectHandler<T> {
652652
let originalRequest = self.request
653653

654654
var convertToGet = false
655-
if status == .seeOther, request.method != .HEAD {
655+
if status == .seeOther, self.request.method != .HEAD {
656656
convertToGet = true
657-
} else if status == .movedPermanently || status == .found, request.method == .POST {
657+
} else if status == .movedPermanently || status == .found, self.request.method == .POST {
658658
convertToGet = true
659659
}
660660

0 commit comments

Comments
 (0)