vweb: fix missing newline in redirect header string (#11242)
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