Skip to content

Commit 1c1ff25

Browse files
committed
lowercase generated content
as a workaround for node-fetch/node-fetch#661 Fetch doesn't specify force-lowercase, but node-fetch does it.
1 parent 22509ce commit 1c1ff25

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/utils.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function httpContent (csKey, contentLength = 15) {
3030
}
3131
const contents = []
3232
for (let i = 0; i < contentLength; ++i) {
33-
const idx = ((i * keySeed * contentSeed) % 26) + 65
33+
const idx = ((i * keySeed * contentSeed) % 26) + 97
3434
contents.push(String.fromCharCode(idx))
3535
}
3636
const content = contents.join('')

0 commit comments

Comments
 (0)