diff --git a/index.js b/index.js index d145a35..7a311bd 100644 --- a/index.js +++ b/index.js @@ -1,5 +1,6 @@ var bencode = require('bencode') var BitField = require('bitfield') +var Buffer = require('safe-buffer').Buffer var debug = require('debug')('ut_metadata') var EventEmitter = require('events').EventEmitter var inherits = require('inherits') diff --git a/test/fetch.js b/test/fetch.js index 302a9a3..17c4541 100644 --- a/test/fetch.js +++ b/test/fetch.js @@ -1,4 +1,5 @@ var bencode = require('bencode') +var Buffer = require('safe-buffer').Buffer var fixtures = require('webtorrent-fixtures') var Protocol = require('bittorrent-protocol') var test = require('tape')