lvivski / start

Sinatra inspired web development framework for Dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cookie method causes an exception when called with no options

nkratzke opened this issue · comments

Cookie method causes an exeception when called with no options.

app.get("/formular").listen((Request req) {
      req.response.cookie('test', 'example');
      req.response.send("something");
});

Above causes exception. The following works:

app.get("/formular").listen((Request req) {
      req.response.cookie('test', 'example', {});
      req.response.send("something");
});