mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net: fix 0 length file if Content-Header is missing or corrupt (#10464)
This commit is contained in:
parent
9bfec97a6d
commit
12bb0c236a
@ -68,5 +68,9 @@ pub fn decode(text string) string {
|
||||
cscanner.skip_crlf()
|
||||
}
|
||||
cscanner.skip_crlf()
|
||||
return sb.str()
|
||||
if sb.len > 0 {
|
||||
return sb.str()
|
||||
} else {
|
||||
return text
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user