We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d092f3 commit aa71a42Copy full SHA for aa71a42
config/http.js
@@ -38,7 +38,6 @@ module.exports.http = {
38
order: [
39
'startRequestTimer',
40
'cookieParser',
41
- process.env.NODE_ENV === 'production' ? 'forceDomain' : false,
42
process.env.NODE_ENV === 'production' ? 'httpsRedirect' : false,
43
'readRstudioSession',
44
'session',
@@ -211,15 +210,7 @@ module.exports.http = {
211
210
passportSession: require('passport').session(),
212
httpsRedirect: forceHttpsSchema({
213
enable: true
214
- }),
215
- forceDomain: function(req, res, next) {
216
- var host = req.header('host');
217
- if (host.match(/^www.rdocumentation\.org$/i)) {
218
- next();
219
- } else {
220
- res.redirect(301, 'https://www.rdocumentation.org' + req.url);
221
- }
222
+ })
223
},
224
225
locals: {
0 commit comments