diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-12 23:10:39 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-12 23:10:39 +0800 |
commit | 11f8fa2faaef68684a91716f6331a4e6e1463b3b (patch) | |
tree | 0bbe87d1b0cfd759f0fae0c8a0180ec0d78e5f16 /example/todoApi/app/src | |
parent | c0f39d743fbdf07544a6f5b6284d7123e5c36296 (diff) | |
download | cask-11f8fa2faaef68684a91716f6331a4e6e1463b3b.tar.gz cask-11f8fa2faaef68684a91716f6331a4e6e1463b3b.tar.bz2 cask-11f8fa2faaef68684a91716f6331a4e6e1463b3b.zip |
support for java <9
Diffstat (limited to 'example/todoApi/app/src')
-rw-r--r-- | example/todoApi/app/src/TodoMvcApi.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/example/todoApi/app/src/TodoMvcApi.scala b/example/todoApi/app/src/TodoMvcApi.scala index 3559f28..58df1d5 100644 --- a/example/todoApi/app/src/TodoMvcApi.scala +++ b/example/todoApi/app/src/TodoMvcApi.scala @@ -21,7 +21,7 @@ object TodoMvcApi extends cask.MainRoutes{ @cask.post("/add") def add(request: cask.Request) = { - todos = Seq(Todo(false, new String(request.data.readAllBytes()))) ++ todos + todos = Seq(Todo(false, new String(request.readAllBytes()))) ++ todos } @cask.post("/toggle/:index") |