File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,6 @@ module.exports.http = {
38
38
order : [
39
39
'startRequestTimer' ,
40
40
'cookieParser' ,
41
- process . env . NODE_ENV === 'production' ? 'forceDomain' : false ,
42
41
process . env . NODE_ENV === 'production' ? 'httpsRedirect' : false ,
43
42
'readRstudioSession' ,
44
43
'session' ,
@@ -211,15 +210,7 @@ module.exports.http = {
211
210
passportSession : require ( 'passport' ) . session ( ) ,
212
211
httpsRedirect : forceHttpsSchema ( {
213
212
enable : true
214
- } ) ,
215
- forceDomain : function ( req , res , next ) {
216
- var host = req . header ( 'host' ) ;
217
- if ( host . match ( / ^ w w w .r d o c u m e n t a t i o n \. o r g $ / i) ) {
218
- next ( ) ;
219
- } else {
220
- res . redirect ( 301 , 'https://www.rdocumentation.org' + req . url ) ;
221
- }
222
- }
213
+ } )
223
214
} ,
224
215
225
216
locals : {
You can’t perform that action at this time.
0 commit comments