Skip to content

Commit 069048d

Browse files
hellokidderphillwiggins
authored andcommitted
Fix About Retrieving Sessions (#263)
1 parent 880a4aa commit 069048d

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/src/objects/parse_session.dart

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ class ParseSession extends ParseObject implements ParseCloneable {
2929

3030
Future<ParseResponse> getCurrentSessionFromServer() async {
3131
try {
32-
final Uri tempUri = Uri.parse(_client.data.serverUrl);
3332

34-
final Uri url = Uri(
35-
scheme: tempUri.scheme,
36-
host: tempUri.host,
37-
path: '${tempUri.path}$keyEndPointSessions/me');
33+
const String path = '$keyEndPointSessions/me';
34+
final Uri url = getSanitisedUri(_client, path);
3835

3936
final Response response = await _client.get(url);
4037

0 commit comments

Comments
 (0)