Skip to content

Commit

Permalink
[MRESOLVER-339] Preemptive auth fix (s4u#267)
Browse files Browse the repository at this point in the history
Fix from 7c06f70
was partially reverted by 28fec45
  • Loading branch information
slawekjaranowski authored Mar 8, 2023
1 parent 5c36e0c commit 21f0dc7
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,7 @@ private void execute(HttpUriRequest request, EntityGetter getter) throws Excepti
private void prepare(HttpUriRequest request, SharingHttpContext context) {
final boolean put = HttpPut.METHOD_NAME.equalsIgnoreCase(request.getMethod());
if (preemptiveAuth || (preemptivePutAuth && put)) {
state.setAuthScheme(server, new BasicScheme());
context.getAuthCache().put(server, new BasicScheme());
}
if (supportWebDav) {
if (state.getWebDav() == null && (put || isPayloadPresent(request))) {
Expand Down

0 comments on commit 21f0dc7

Please sign in to comment.