Skip to content

Commit 3efa5c6

Browse files
authored
Merge pull request #252 from MeCKodo/patch-1
statistics_report 兼容H2
2 parents d8b1a58 + 237a1a3 commit 3efa5c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/qiniu.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1511,7 +1511,7 @@
15111511

15121512
// send statistics log
15131513
if (!op.disable_statistics_report) {
1514-
var req_id = info.responseHeaders.match(/(X-Reqid\:\ )([\w\.\%-]*)/)[2];
1514+
var req_id = info.responseHeaders.match(/(X-Reqid\:\ )([\w\.\%-]*)/i)[2];
15151515
var startAt = file._start_at ? file._start_at.getTime() : nowTime.getTime();
15161516
statisticsLogger.log(
15171517
info.status,
@@ -1823,4 +1823,4 @@
18231823
global.Qiniu = Qiniu;
18241824
global.QiniuJsSDK = QiniuJsSDK;
18251825

1826-
})(window);
1826+
})(window);

0 commit comments

Comments
 (0)