diff --git a/gulpfile.js b/gulpfile.js index e556892..1bd0c63 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -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})); }); \ No newline at end of file diff --git a/src/CompressR.WebApi/DeflateAttribute.cs b/src/CompressR.WebApi/DeflateAttribute.cs index 5225264..74a9a2e 100644 --- a/src/CompressR.WebApi/DeflateAttribute.cs +++ b/src/CompressR.WebApi/DeflateAttribute.cs @@ -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; } diff --git a/src/CompressR.WebApi/GzipAttribute.cs b/src/CompressR.WebApi/GzipAttribute.cs index 886016a..1bd276a 100644 --- a/src/CompressR.WebApi/GzipAttribute.cs +++ b/src/CompressR.WebApi/GzipAttribute.cs @@ -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; }