mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
ci: fix failing vweb_test.v
This commit is contained in:
@ -41,7 +41,7 @@ fn main() {
|
||||
url := 'https://api.caiyunapp.com/v2.5/96Ly7wgKGq6FhllM/116.391912,40.010711/weather.jsonp?hourlysteps=120&random=$rnd'
|
||||
// println(url)
|
||||
|
||||
resp := http.fetch(url, config) or {
|
||||
resp := http.fetch(http.FetchConfig{ ...config, url: url }) or {
|
||||
println('failed to fetch data from the server')
|
||||
return
|
||||
}
|
||||
|
@ -6,7 +6,7 @@ fn main() {
|
||||
config := http.FetchConfig{
|
||||
user_agent: 'Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:88.0) Gecko/20100101 Firefox/88.0'
|
||||
}
|
||||
resp := http.fetch('https://tuicool.com', config) or {
|
||||
resp := http.fetch(http.FetchConfig{ ...config, url: 'https://tuicool.com' }) or {
|
||||
println('failed to fetch data from the server')
|
||||
return
|
||||
}
|
||||
|
Reference in New Issue
Block a user