aboutsummaryrefslogtreecommitdiff
path: root/lib/connection.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-14 14:21:26 +0200
committerKitsune Ral <Kitsune-Ral@users.sf.net>2020-04-14 14:21:26 +0200
commit4088ab4572c5b7cde603aeb1a89bc4515833beaf (patch)
treea558f40218ab061088ba0a0321375e1ce7161ce1 /lib/connection.cpp
parent58dfe74390ebdd8ec6611d3b8fecfe7d051ff955 (diff)
downloadlibquotient-4088ab4572c5b7cde603aeb1a89bc4515833beaf.tar.gz
libquotient-4088ab4572c5b7cde603aeb1a89bc4515833beaf.zip
BaseJob::makeRequestUrl(): even more tolerance to slash separators
The code is really defensive now, making sure there's exactly one slash between the base path and the endpoint. It's still very conservative about the path composition otherwise (no normalisation etc.).
Diffstat (limited to 'lib/connection.cpp')
-rw-r--r--lib/connection.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/connection.cpp b/lib/connection.cpp
index 1c63adeb..41ecee67 100644
--- a/lib/connection.cpp
+++ b/lib/connection.cpp
@@ -280,7 +280,7 @@ void Connection::resolveServer(const QString& mxid)
return;
}
qCInfo(MAIN) << ".well-known URL for" << maybeBaseUrl.host()
- << "is" << baseUrl.authority();
+ << "is" << baseUrl.toString();
setHomeserver(baseUrl);
} else {
qCInfo(MAIN) << "No .well-known file, using" << maybeBaseUrl