We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
String
1 parent 563596a commit bc992d7Copy full SHA for bc992d7
lib/internal/inspector_network_tracking.js
@@ -4,6 +4,7 @@ const {
4
ArrayIsArray,
5
DateNow,
6
ObjectEntries,
7
+ String,
8
} = primordials;
9
10
let dc;
@@ -18,7 +19,7 @@ const headerObjectToDictionary = (headers = {}) => {
18
19
for (const { 0: key, 1: value } of ObjectEntries(headers)) {
20
if (typeof value === 'string') dict[key] = value;
21
if (ArrayIsArray(value)) dict[key] = value.join(', ');
- else dict[key] = value.toString();
22
+ else dict[key] = String(value);
23
}
24
return dict;
25
};
0 commit comments