You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: runtime/protocol/http-client-engines/http-client-engine-ktor/jvm/src/aws/smithy/kotlin/runtime/http/engine/ktor/KtorEngine.kt
+4Lines changed: 4 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -72,7 +72,11 @@ actual class KtorEngine actual constructor(
72
72
73
73
// do not throw exceptions if status code < 300, error handling is expected by generated clients
74
74
expectSuccess =false
75
+
76
+
// do not attempt to follow redirects for status codes like 301 because they should be handled higher up
77
+
followRedirects =false
75
78
}
79
+
76
80
privateval logger =Logger.getLogger<KtorEngine>()
77
81
78
82
// TODO: Remove following annotation after https://youtrack.jetbrains.com/issue/KTOR-3001 is resolved
0 commit comments