Skip to content

Commit bd7b625

Browse files
committed
fix(ajax): 兼容hostname不存在情况
1 parent 6bd2b89 commit bd7b625

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/core/runtime/capture/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ export const hack = <T extends typeof http.request>(
8080
const logPre = `[${context.captureSN}]`;
8181

8282
const {
83-
method, hostname, path, port
83+
method, host: reqHost, hostname = reqHost, path, port
8484
} = options;
8585

8686
logger.debug(`${logPre} Request begin. ${

0 commit comments

Comments
 (0)