all files / lib/deps/ajax/ applyTypeToBuffer.js

100% Statements 5/5
100% Branches 0/0
100% Functions 1/1
100% Lines 5/5
1 2 3 4 5 6 7 8 9 10 11 12          1196×    
'use strict';
 
Object.defineProperty(exports, "__esModule", {
  value: true
});
// non-standard, but we do this to mimic blobs in the browser
function applyTypeToBuffer(buffer, resp) {
  buffer.type = resp.headers['content-type'];
}
 
exports.default = applyTypeToBuffer;
module.exports = exports['default'];