OAuth2: Fix double slash in URL
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 22 Sep 2017 16:05:47 +0000 (18:05 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Thu, 5 Oct 2017 20:01:36 +0000 (22:01 +0200)
commit3184d4bb325893a4c346c53148652e8dc41b3d1d
treeed5d523a82ef63a86cca0c583269139194034c13
parent0cbbea9796d153f4872c32501927d71d8529a2d6
OAuth2: Fix double slash in URL

We need to use concatPath to avoid possible double '/' in the URLs if the
account url() ends with '/'.

This has become even more of a problem since commit
d1b8370a4ad21c741da507f64a5dbfe82a3fad05 which was resolving the url after
a redirect where most server actually add a '/' if the url is a folder
src/gui/creds/oauth.cpp
src/libsync/creds/httpcredentials.cpp