1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-28 05:03:59 +03:00

Hit /versions instead of / since it is actually a known endpoint

This commit is contained in:
Kegan Dougal
2016-01-21 17:52:52 +00:00
parent 7bdab05785
commit c5e7df8975
2 changed files with 4 additions and 9 deletions

View File

@@ -562,14 +562,9 @@ SyncApi.prototype._sync = function(syncOptions, attempt) {
*/
SyncApi.prototype._pokeKeepAlive = function() {
return this.client._http.requestWithPrefix(
undefined, "GET", "/", undefined,
undefined, httpApi.PREFIX_R0, 5 * 1000
).catch(function(err) {
if (err.httpStatus > 0) { // we hit the server alright
return q();
}
throw err;
});
undefined, "GET", "/_matrix/client/versions", undefined,
undefined, "", 5 * 1000
);
};
/**

View File

@@ -10,7 +10,7 @@ describe("MatrixClient", function() {
var identityServerDomain = "identity.server";
var client, store, scheduler;
var KEEP_ALIVE_PATH = "/";
var KEEP_ALIVE_PATH = "/_matrix/client/versions";
var PUSH_RULES_RESPONSE = {
method: "GET",