Add proxy configuration to more network fetches. (#7328)

This commit is contained in:
Dominic Cooney authored and GitHub committed 2025-11-10 09:54:54 -08:00
1 parent ba98b44504
commit 67bc9932e5
21 files changed
+48 -11

No files matched your search

+2
View File
@@ -1,5 +1,6 @@
import axios from "axios"
import ogs from "open-graph-scraper"
import { getAxiosSettings } from "@/shared/net"
export interface OpenGraphData {
title?: string
@@ -94,6 +95,7 @@ export async function detectImageUrl(url: string): Promise<boolean> {
"User-Agent": "Mozilla/5.0 (compatible; VSCodeExtension/1.0; +https://cline.bot)",
},
timeout: 3000,
...getAxiosSettings(),
})
const contentType = response.headers["content-type"]