From 26e25650b2a75a8d53640b14d34c8a12ac7efe9e Mon Sep 17 00:00:00 2001 From: gn0st1c Date: Mon, 25 Jun 2018 22:15:59 +0300 Subject: [PATCH 1/2] Update gulpfile.js tabs to spaces for consistency --- code/gulpfile.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/code/gulpfile.js b/code/gulpfile.js index 0bcdf930..39f9325b 100644 --- a/code/gulpfile.js +++ b/code/gulpfile.js @@ -96,14 +96,14 @@ var buildHeaderFile = function() { cb(0, destination); - }); + }); } var htmllintReporter = function(filepath, issues) { - if (issues.length > 0) { - issues.forEach(function (issue) { - console.info( + if (issues.length > 0) { + issues.forEach(function (issue) { + console.info( '[gulp-htmllint] ' + filepath + ' [' + issue.line + ',' + @@ -111,9 +111,9 @@ var htmllintReporter = function(filepath, issues) { '(' + issue.code + ') ' + issue.msg ); - }); - process.exitCode = 1; - } + }); + process.exitCode = 1; + } }; var buildWebUI = function(module) { From 913a24aef6f53e8cae54fb5adf3dd8251ab52f27 Mon Sep 17 00:00:00 2001 From: gn0st1c Date: Mon, 25 Jun 2018 22:17:25 +0300 Subject: [PATCH 2/2] Update web.ino tabs to spaces for consistency --- code/espurna/web.ino | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/code/espurna/web.ino b/code/espurna/web.ino index ed302a60..479b0dc4 100644 --- a/code/espurna/web.ino +++ b/code/espurna/web.ino @@ -231,9 +231,9 @@ void _onHome(AsyncWebServerRequest *request) { response->addHeader("Content-Encoding", "gzip"); response->addHeader("Last-Modified", _last_modified); - response->addHeader("X-XSS-Protection", "1; mode=block"); - response->addHeader("X-Content-Type-Options", "nosniff"); - response->addHeader("X-Frame-Options", "deny"); + response->addHeader("X-XSS-Protection", "1; mode=block"); + response->addHeader("X-Content-Type-Options", "nosniff"); + response->addHeader("X-Frame-Options", "deny"); request->send(response); }