Skip to content

Commit e13663b

Browse files
committed
types(proxy): req can be url too
1 parent a78eb1d commit e13663b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/proxy.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function getProxyRequestHeaders(event: H3Event) {
107107

108108
export function fetchWithEvent(
109109
event: H3Event,
110-
req: RequestInfo,
110+
req: RequestInfo | URL,
111111
init?: RequestInit,
112112
options?: { fetch: typeof fetch }
113113
) {

0 commit comments

Comments
 (0)