0b1b49cb8a
closes #508
12 lines
257 B
JavaScript
12 lines
257 B
JavaScript
|
|
'use strict';
|
|
|
|
var request = require('../context').request;
|
|
|
|
describe('req.secure', function(){
|
|
it('should return true when encrypted', function(){
|
|
var req = request();
|
|
req.req.socket = { encrypted: true };
|
|
req.secure.should.be.true;
|
|
})
|
|
})
|