Browse Source

git stMerge branch 'dev' of github.com:xoseperez/espurna into dev

v2
Xose Pérez 6 years ago
parent
commit
77b35e82e9
2 changed files with 10 additions and 10 deletions
  1. +3
    -3
      code/espurna/web.ino
  2. +7
    -7
      code/gulpfile.js

+ 3
- 3
code/espurna/web.ino View File

@ -234,9 +234,9 @@ void _onHome(AsyncWebServerRequest *request) {
response->addHeader("Content-Encoding", "gzip"); response->addHeader("Content-Encoding", "gzip");
response->addHeader("Last-Modified", _last_modified); 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); request->send(response);
} }


+ 7
- 7
code/gulpfile.js View File

@ -96,14 +96,14 @@ var buildHeaderFile = function() {
cb(0, destination); cb(0, destination);
});
});
} }
var htmllintReporter = function(filepath, issues) { 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] ' + '[gulp-htmllint] ' +
filepath + ' [' + filepath + ' [' +
issue.line + ',' + issue.line + ',' +
@ -111,9 +111,9 @@ var htmllintReporter = function(filepath, issues) {
'(' + issue.code + ') ' + '(' + issue.code + ') ' +
issue.msg issue.msg
); );
});
process.exitCode = 1;
}
});
process.exitCode = 1;
}
}; };
var buildWebUI = function(module) { var buildWebUI = function(module) {


Loading…
Cancel
Save