optimizations

This commit is contained in:
Me No Dev
2016-08-23 03:10:45 +03:00
parent bfde9bc81a
commit 7110758b5a
2 changed files with 4 additions and 1 deletions

View File

@@ -397,7 +397,7 @@ AsyncFileResponse::AsyncFileResponse(File content, String path, String contentTy
_content = content;
_contentLength = _content.size();
if(!download && String(_content.name()).endsWith(".gz"))
if(!download && String(_content.name()).endsWith(".gz") && !path.endsWith(".gz"))
addHeader("Content-Encoding", "gzip");
if(contentType == "")