mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
net.http: wrap unsafe{} around req.headers.free() (#5891)
This commit is contained in:
parent
c858978348
commit
60997b3052
@ -191,11 +191,15 @@ fn build_url_from_fetch(_url string, config FetchConfig) ?string {
|
||||
}
|
||||
|
||||
fn (mut req Request) free() {
|
||||
req.headers.free()
|
||||
unsafe {
|
||||
req.headers.free()
|
||||
}
|
||||
}
|
||||
|
||||
fn (mut resp Response) free() {
|
||||
resp.headers.free()
|
||||
unsafe {
|
||||
resp.headers.free()
|
||||
}
|
||||
}
|
||||
|
||||
// add_header adds the key and value of an HTTP request header
|
||||
|
Loading…
Reference in New Issue
Block a user