mirror of
https://github.com/avwo/whistle.git
synced 2026-10-18 22:51:32 +08:00
15 lines
492 B
JavaScript
15 lines
492 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request('http://attachment.test.whistlejs.com/index.html', function(res, data) {
|
|
res.headers.should.have.property('content-disposition', 'attachment; filename="index.html"');
|
|
});
|
|
|
|
util.request({
|
|
method: 'put',
|
|
url: 'https://attachment.test.whistlejs.com/index2.html'
|
|
}, function(res, data) {
|
|
res.headers.should.have.property('content-disposition', 'attachment; filename="index2.html"');
|
|
});
|
|
};
|