mirror of
https://github.com/avwo/whistle.git
synced 2026-10-17 05:31:04 +08:00
15 lines
403 B
JavaScript
15 lines
403 B
JavaScript
var util = require('../util.test');
|
|
|
|
module.exports = function() {
|
|
util.request('http://referer.test.whistlejs.com/index.html', function(res, data) {
|
|
data.headers.should.have.property('referer', 'xxx');
|
|
});
|
|
|
|
util.request({
|
|
url: 'https://referer.test.whistlejs.com/index.html',
|
|
method: 'post'
|
|
}, function(res, data) {
|
|
data.headers.should.have.property('referer', 'xxx');
|
|
});
|
|
};
|