Skip to content
This repository has been archived by the owner on Aug 28, 2021. It is now read-only.

Commit

Permalink
Fix INDENT_RESPONSES environment variable - previously any string (in…
Browse files Browse the repository at this point in the history
…cluding 'false') would evaluate to

true
  • Loading branch information
Logan Glasson committed Jul 12, 2018
1 parent fdc066e commit 6da8cce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ if ( cluster.isMaster ) {

app.use( passport.initialize( ) )

if ( process.env.INDENT_RESPONSES )
if ( process.env.INDENT_RESPONSES === 'true' )
app.set( 'json spaces', 2 )

require( './config/passport' )( passport )
Expand Down

0 comments on commit 6da8cce

Please sign in to comment.