mirror of
https://github.com/git-touch/git-touch
synced 2024-12-19 11:43:30 +01:00
fix(gitlab): encode path
This commit is contained in:
parent
d91ae0a213
commit
a8faf76227
@ -19,8 +19,9 @@ class GitlabBlobScreen extends StatelessWidget {
|
||||
return RefreshStatefulScaffold<GitlabBlob>(
|
||||
title: AppBarTitle(path),
|
||||
fetchData: () async {
|
||||
final encodedPath = Uri.encodeComponent(path);
|
||||
final res = await Provider.of<AuthModel>(context).fetchGitlab(
|
||||
'/projects/$id/repository/files/$path?ref=master'); // TODO:
|
||||
'/projects/$id/repository/files/$encodedPath?ref=master'); // TODO:
|
||||
return GitlabBlob.fromJson(res);
|
||||
},
|
||||
bodyBuilder: (data, _) {
|
||||
|
Loading…
Reference in New Issue
Block a user