1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

vweb: fix an example

This commit is contained in:
Alexander Medvednikov 2020-07-05 16:52:20 +02:00
parent 36183660e6
commit 1505f3e22c

View File

@ -42,6 +42,6 @@ pub fn (mut app App) text() 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')
}