File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ class API {
45
45
{
46
46
'login' : server.login,
47
47
'password' : server.password,
48
- 'from_client' : 'true' ,
48
+ 'from_client' : '${ true } ' ,
49
49
},
50
50
);
51
51
final request = MultipartRequest ('POST' , uri)
@@ -59,8 +59,11 @@ class API {
59
59
});
60
60
final response = await request.send ();
61
61
final body = await response.stream.bytesToString ();
62
- debugPrint ('checkServerCredentials ${response .statusCode }' );
63
- // debugPrint(response.headers.toString());
62
+ debugPrint (
63
+ 'checkServerCredentials ${response .statusCode }'
64
+ '\n :....${response .headers }'
65
+ '\n :....$body ' ,
66
+ );
64
67
65
68
if (response.statusCode == 200 ) {
66
69
final json = await compute (jsonDecode, body);
Original file line number Diff line number Diff line change 1
1
import 'dart:io' ;
2
2
3
3
import 'package:flutter/foundation.dart' ;
4
- import 'package:flutter/widgets.dart' ;
5
4
import 'package:logging/logging.dart' ;
6
5
import 'package:path/path.dart' as path;
7
6
import 'package:path_provider/path_provider.dart' ;
You can’t perform that action at this time.
0 commit comments