Skip to content
This repository has been archived by the owner on Sep 17, 2018. It is now read-only.

Commit

Permalink
Convert == to ===
Browse files Browse the repository at this point in the history
  • Loading branch information
Francois Marier committed May 30, 2012
1 parent be154a2 commit 6273435
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bin/securenotes_server.js
Expand Up @@ -36,7 +36,7 @@ app.use(express.logger({
app.use(express.limit("10kb"));

/*
if (config.get('scheme') == 'https') {
if (config.get('scheme') === 'https') {
app.use(function(req, resp, next) {
// expires in 30 days, include subdomains like www
resp.setHeader("Strict-Transport-Security", "max-age=2592000; includeSubdomains");
Expand Down
2 changes: 1 addition & 1 deletion lib/wsapi.js
Expand Up @@ -77,7 +77,7 @@ exports.setup = function(options, app) {

// If externally we're serving content over SSL we can enable things
// like strict transport security and change the way cookies are set
//const overSSL = (config.get('scheme') == 'https');
//const overSSL = (config.get('scheme') === 'https');
const overSSL = false;

var cookieParser = express.cookieParser();
Expand Down
2 changes: 1 addition & 1 deletion lib/wsapi/login_do.js
Expand Up @@ -42,7 +42,7 @@ exports.process = function(req, res) {
});
bidRes.on('end', function () {
var verified = JSON.parse(data);
if (verified.status == 'okay') {
if (verified.status === 'okay') {
users.account_exists(
verified.email, function (exists) {
if (exists) {
Expand Down

0 comments on commit 6273435

Please sign in to comment.