Skip to content

Commit f190e03

Browse files
committed
Release v3.0.3
1 parent 19313bd commit f190e03

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

client/src/main/java/org/asynchttpclient/AsyncHttpClientConfig.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -380,7 +380,10 @@ public interface AsyncHttpClientConfig {
380380
*
381381
* @return true if the Authorization header should be stripped, false otherwise.
382382
*/
383-
boolean isStripAuthorizationOnRedirect();
383+
default boolean isStripAuthorizationOnRedirect() {
384+
// By default, we throw, so that existing implementations don't break.
385+
throw new UnsupportedOperationException("IsStripAuthorizationOnRedirect is not supported by " + getClass().getName());
386+
}
384387

385388
enum ResponseBodyPartFactory {
386389

0 commit comments

Comments
 (0)