mirror of
https://github.com/avwo/whistle.git
synced 2026-10-18 22:51:32 +08:00
16 lines
479 B
JavaScript
16 lines
479 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request('http://disable.test.whistlejs.com/index.html', function(res, data) {
|
|
res.headers.should.have.property('cache-control', 'no-cache');
|
|
});
|
|
|
|
util.request({
|
|
method: 'post',
|
|
url: 'https://disable.test.whistlejs.com/index.html'
|
|
}, function(res, data) {
|
|
res.headers.should.have.property('cache-control', 'no-cache');
|
|
res.headers.should.not.have.property('set-cookie');
|
|
});
|
|
};
|