+10
This commit is contained in:
parent
72f9054ecc
commit
5434b14abe
3 changed files with 6 additions and 3 deletions
|
@ -31,7 +31,10 @@ _send(HttpRequest request, [data]) {
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
request.send(data);
|
if (data == null)
|
||||||
|
request.send();
|
||||||
|
else
|
||||||
|
request.send(JSON.encode(data));
|
||||||
return completer.future;
|
return completer.future;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
name: angel_client
|
name: angel_client
|
||||||
version: 1.0.0-dev+9
|
version: 1.0.0-dev+10
|
||||||
description: Client library for the Angel framework.
|
description: Client library for the Angel framework.
|
||||||
author: Tobe O <thosakwe@gmail.com>
|
author: Tobe O <thosakwe@gmail.com>
|
||||||
homepage: https://github.com/angel-dart/angel_client
|
homepage: https://github.com/angel-dart/angel_client
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import "package:angel_framework/defs.dart";
|
import "package:angel_framework/src/defs.dart";
|
||||||
|
|
||||||
class Postcard extends MemoryModel {
|
class Postcard extends MemoryModel {
|
||||||
int id;
|
int id;
|
||||||
|
|
Loading…
Reference in a new issue