Skip to content

Commit

Permalink
Merge pull request #16290 from iterate-ch/bugfix/GH-15127-persistentauth
Browse files Browse the repository at this point in the history
Only disable preemptive authentication when response header value of …
  • Loading branch information
dkocher authored Sep 6, 2024
2 parents 5206820 + 7ce3c83 commit 074195a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webdav/src/main/java/ch/cyberduck/core/dav/DAVSession.java
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,9 @@ private final class MicrosoftIISPersistentAuthResponseInterceptor implements Htt
@Override
public void process(final HttpResponse response, final HttpContext context) {
if(response.containsHeader("Persistent-Auth")) {
client.disablePreemptiveAuthentication();
if(response.getFirstHeader("Persistent-Auth").getValue().equals("true")) {
client.disablePreemptiveAuthentication();
}
}
}
}
Expand Down

0 comments on commit 074195a

Please sign in to comment.