mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: change Context.headers from string to struct Header (#10749)
This commit is contained in:
@ -49,7 +49,7 @@ pub fn (mut app App) show_text() vweb.Result {
|
||||
|
||||
pub fn (mut app App) cookie() vweb.Result {
|
||||
app.set_cookie(name: 'cookie', value: 'test')
|
||||
return app.text('Headers: $app.headers')
|
||||
return app.text('Response Headers\n$app.header')
|
||||
}
|
||||
|
||||
[post]
|
||||
|
Reference in New Issue
Block a user