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.
1 parent 217bcf7 commit c97e423Copy full SHA for c97e423
lib/parse_http.js
@@ -44,12 +44,10 @@ function parseHttpRequest (req, options) {
44
if (params.info_hash) {
45
if (!Array.isArray(params.info_hash)) throw new Error('invalid info_hash array')
46
47
- params.info_hash = params.info_hash.map(function (infoHash) {
+ params.info_hash.forEach(function (infoHash) {
48
if (infoHash.length !== 20) {
49
throw new Error('invalid info_hash')
50
}
51
-
52
- return infoHash
53
})
54
55
0 commit comments