mirror of
https://github.com/appwrite/appwrite
synced 2026-05-24 01:18:37 +00:00
Updated SDK
This commit is contained in:
parent
53825f6b0a
commit
cefcc296be
2 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
||||||
|
import 'dart:io';
|
||||||
import 'package:appwrite/appwrite.dart';
|
import 'package:appwrite/appwrite.dart';
|
||||||
//const fs = require('fs');
|
|
||||||
|
|
||||||
// Init SDK
|
// Init SDK
|
||||||
Client client = Client();
|
Client client = Client();
|
||||||
|
|
|
||||||
|
|
@ -121,7 +121,7 @@ class Client {
|
||||||
);
|
);
|
||||||
|
|
||||||
if(headers['content-type'] == 'multipart/form-data') {
|
if(headers['content-type'] == 'multipart/form-data') {
|
||||||
FormData data = FormData.fromMap(params);
|
return http.request(path, data: FormData.fromMap(params), options: options);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (method == HttpMethod.get) {
|
if (method == HttpMethod.get) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue