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:
parent
36183660e6
commit
1505f3e22c
@ -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')
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user