2013-11-13 17:01:15 +00:00
|
|
|
|
2015-10-11 22:59:51 +00:00
|
|
|
'use strict';
|
|
|
|
|
2013-11-14 02:34:15 +00:00
|
|
|
var request = require('../context').request;
|
2013-11-13 17:01:15 +00:00
|
|
|
|
|
|
|
describe('req.secure', function(){
|
|
|
|
it('should return true when encrypted', function(){
|
|
|
|
var req = request();
|
|
|
|
req.req.socket = { encrypted: true };
|
|
|
|
req.secure.should.be.true;
|
|
|
|
})
|
2015-10-11 22:59:51 +00:00
|
|
|
})
|