diff --git a/vlib/net/http/http.v b/vlib/net/http/http.v index 566c142e1909fe..e3f22de9c50b60 100644 --- a/vlib/net/http/http.v +++ b/vlib/net/http/http.v @@ -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')