mirror of
https://github.com/pd4d10/git-touch.git
synced 2026-04-29 11:03:05 -05:00
fix(gitlab): encode path
This commit is contained in:
@@ -19,8 +19,9 @@ class GitlabBlobScreen extends StatelessWidget {
|
|||||||
return RefreshStatefulScaffold<GitlabBlob>(
|
return RefreshStatefulScaffold<GitlabBlob>(
|
||||||
title: AppBarTitle(path),
|
title: AppBarTitle(path),
|
||||||
fetchData: () async {
|
fetchData: () async {
|
||||||
|
final encodedPath = Uri.encodeComponent(path);
|
||||||
final res = await Provider.of<AuthModel>(context).fetchGitlab(
|
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);
|
return GitlabBlob.fromJson(res);
|
||||||
},
|
},
|
||||||
bodyBuilder: (data, _) {
|
bodyBuilder: (data, _) {
|
||||||
|
|||||||
Reference in New Issue
Block a user