vweb: fix an example

pull/5681/head
Alexander Medvednikov 2020-07-05 16:52:20 +02:00
parent 36183660e6
commit 1505f3e22c
1 changed files with 1 additions and 1 deletions

View File

@ -42,6 +42,6 @@ pub fn (mut app App) text() vweb.Result {
} }
pub fn (mut app App) cookie() vweb.Result { pub fn (mut app App) cookie() vweb.Result {
app.vweb.set_cookie('cookie', 'test') app.vweb.set_cookie(name:'cookie', value:'test')
return app.vweb.text('Headers: $app.vweb.headers') return app.vweb.text('Headers: $app.vweb.headers')
} }