Fix diagnose command

This commit is contained in:
Svilen Markov 2025-04-10 00:35:27 +01:00
parent cb6b52ff4c
commit 6bb6f87800

View File

@ -81,7 +81,9 @@ var diagnosticSteps = []diagnosticStep{
{ {
name: "fetch data from Yahoo finance API", name: "fetch data from Yahoo finance API",
fn: func() (string, error) { fn: func() (string, error) {
return testHttpRequest("GET", "https://query1.finance.yahoo.com/v8/finance/chart/NVDA", 200) return testHttpRequestWithHeaders("GET", "https://query1.finance.yahoo.com/v8/finance/chart/NVDA", map[string]string{
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:137.0) Gecko/20100101 Firefox/137.0",
}, 200)
}, },
}, },
{ {