This commit is contained in:
thosakwe 2016-11-28 00:02:12 -05:00
parent 72f9054ecc
commit 5434b14abe
3 changed files with 6 additions and 3 deletions

View file

@ -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;
} }

View file

@ -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

View file

@ -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;