diff options
author | Christoph Helma <helma@in-silico.de> | 2010-03-10 12:00:48 +0100 |
---|---|---|
committer | Christoph Helma <helma@in-silico.de> | 2010-03-10 12:00:48 +0100 |
commit | b910c13e5f0309a653c911dd7083baf6e513cf22 (patch) | |
tree | 77c24f72bd5c24e6ff2d8c96e238ddcc468142df | |
parent | 3184b1564a71b0aea2c6a060106539244bd54576 (diff) |
newline added to end of uri-lists
-rw-r--r-- | application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/application.rb b/application.rb index ca2887d..3ef7541 100644 --- a/application.rb +++ b/application.rb @@ -23,7 +23,7 @@ DataMapper.auto_upgrade! get '/?' do response['Content-Type'] = 'text/uri-list' - Task.all.collect{|t| t.uri}.join("\n") + Task.all.collect{|t| t.uri}.join("\n") + "\n" end get '/:id/?' do @@ -46,7 +46,7 @@ post '/?' do task.uri = url_for("/#{task.id}", :full) task.save response['Content-Type'] = 'text/uri-list' - task.uri + task.uri + "\n" end put '/:id/:status/?' do |