File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -9,7 +9,10 @@ class WooAuthInterceptor extends Interceptor {
99 var publicToken = dotenv.env['AUTH_PUBLIC_TOKEN' ].toString ();
1010 var secretToken = dotenv.env['AUTH_SECRET_TOKEN' ].toString ();
1111 String basic = 'Basic ' + base64Encode (utf8.encode ('$publicToken :$secretToken ' ));
12- options.headers = ({'Authorization' : '$basic ' });
12+ options.headers = ({
13+ 'Authorization' : '$basic ' ,
14+ 'Content-Type' : 'application/json; charset=UTF-8' ,
15+ });
1316 super .onRequest (options, handler);
1417 }
1518}
Original file line number Diff line number Diff line change 11import 'package:wooapp/api/woo_api_client.dart' ;
22import 'package:wooapp/database/database.dart' ;
3- import 'package:wooapp/datasource/cart_data_source.dart' ;
43import 'package:wooapp/locator.dart' ;
54import 'package:wooapp/model/cart_response.dart' ;
65import 'package:wooapp/model/order.dart' ;
You can’t perform that action at this time.
0 commit comments