mirror of
https://github.com/vlang/v.git
synced 2025-09-13 22:42:26 +03:00
net.http: add a temporary fix for the intermittent segfault with http.get_ text/1 and -prod -cc gcc
13.2.0 (fix #20506) (#20660)
This commit is contained in:
parent
8714233f79
commit
2c6a8c536c
1 changed files with 2 additions and 0 deletions
|
@ -143,7 +143,9 @@ pub fn delete(url string) !Response {
|
|||
return fetch(method: .delete, url: url)
|
||||
}
|
||||
|
||||
// TODO - @[noinline] attribut is used for temporary fix the 'get_text()' intermittent segfault / nil value when compiling with GCC 13.2.x and -prod option ( Issue #20506 )
|
||||
// fetch sends an HTTP request to the `url` with the given method and configuration.
|
||||
@[noinline]
|
||||
pub fn fetch(config FetchConfig) !Response {
|
||||
if config.url == '' {
|
||||
return error('http.fetch: empty url')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue