mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
vweb: fix missing newline in redirect header string (#11242)
This commit is contained in:
parent
6991a3c8d5
commit
a9fb24cb5f
@ -246,7 +246,7 @@ pub fn (mut ctx Context) redirect(url string) Result {
|
||||
return Result{}
|
||||
}
|
||||
ctx.done = true
|
||||
send_string(mut ctx.conn, 'HTTP/1.1 302 Found\r\nLocation: $url$ctx.header\r\n$vweb.headers_close\r\n') or {
|
||||
send_string(mut ctx.conn, 'HTTP/1.1 302 Found\r\nLocation: $url\r\n$ctx.header\r\n$vweb.headers_close\r\n') or {
|
||||
return Result{}
|
||||
}
|
||||
return Result{}
|
||||
|
Loading…
Reference in New Issue
Block a user