Add proxy configuration to more network fetches. (#7328)
This commit is contained in:
1 parent
ba98b44504
commit
67bc9932e5
21 files changed
+48
-11
No files matched your search
@@ -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"]
|
||||
|
||||
Reference in new issue
Block a user