Force basic auth on get authentication required error
authorKevin Ottens <kevin.ottens@enioka.com>
Thu, 11 Mar 2021 17:33:21 +0000 (18:33 +0100)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Mon, 15 Mar 2021 09:38:15 +0000 (09:38 +0000)
commita6bcd3af4666b7fdb0505743a308b6dc8ad1744e
treec017d46b824611c42403441207a1f5145c10cbde
parent0d3459e85e0b38133bd346634347b5b3a2e1459b
Force basic auth on get authentication required error

If the get job got an authentication required error on the account url
(not davUrl! at that stage we always get auth error there), then it is
safe to assume basic auth is used on the server. It is then kind of
pointless to use any other auth mode they will necessarily fail. Only
basic auth will do the job so force it.

Signed-off-by: Kevin Ottens <kevin.ottens@enioka.com>
src/libsync/networkjobs.cpp