minor fix
This commit is contained in:
@@ -4,7 +4,7 @@ var msbuild = require('gulp-msbuild');
|
||||
var download = require("gulp-download");
|
||||
var del = require('del');
|
||||
var assemblyInfo = require('gulp-dotnet-assembly-info');
|
||||
var version = '1.0.0';
|
||||
var version = '1.0.1';
|
||||
|
||||
gulp.task('clean', ()=>{
|
||||
return del['./**/bin', './**/obj', 'nuget.exe', 'nupkgs']
|
||||
@@ -46,5 +46,5 @@ gulp.task('pack', ['build'], ()=>{
|
||||
|
||||
gulp.task('publish', ['pack'], ()=>{
|
||||
return gulp.src('./nupkgs/*.nupkg')
|
||||
.pipe(nuget.push({ nuget: "nuget.exe", source: 'https://www.nuget.org/api/v2/package', apiKey: '158f98f2-f9e6-4490-9382-8b49ebda9cc7'}));
|
||||
.pipe(nuget.push({ nuget: "nuget.exe", source: 'https://www.nuget.org/api/v2/package', apiKey: process.env.nugetApiKey}));
|
||||
});
|
||||
@@ -24,7 +24,7 @@ namespace CompressR.WebApi
|
||||
.Select(a => a.Value)
|
||||
.Any(a => a.Equals(Constants.Deflate, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (acceptedEncoding)
|
||||
if (!acceptedEncoding)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -41,7 +41,7 @@ namespace CompressR.WebApi
|
||||
.Select(a => a.Value)
|
||||
.Any(a => a.Equals(Constants.Deflate, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (acceptedEncoding)
|
||||
if (!acceptedEncoding)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CompressR.WebApi
|
||||
.Select(a => a.Value)
|
||||
.Any(a => a.Equals(Constants.Gzip, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (acceptedEncoding)
|
||||
if (!acceptedEncoding)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -40,7 +40,7 @@ namespace CompressR.WebApi
|
||||
.Select(a => a.Value)
|
||||
.Any(a => a.Equals(Constants.Gzip, StringComparison.OrdinalIgnoreCase));
|
||||
|
||||
if (acceptedEncoding)
|
||||
if (!acceptedEncoding)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user