Просмотр исходного кода

Used best compression for static contents.

silvioprog 6 лет назад
Родитель
Сommit
cfbff10209
2 измененных файлов с 2 добавлено и 2 удалено
  1. 1 1
      README.md
  2. 1 1
      src/sg_httpres.c

+ 1 - 1
README.md

@@ -4,7 +4,7 @@
 
 # Overview
 
-Sagui is a cross-platform C library which helps to develop web servers or frameworks. Its core has been developed using the [GNU libmicrohttpd](https://www.gnu.org/software/libmicrohttpd), [uthash](https://troydhanson.github.io/uthash), [PCRE2](https://www.pcre.org) and [GnuTLS](https://www.gnutls.org), that's why it is so fast, compact and useful to run on embedded systems.
+Sagui is a cross-platform C library which helps to develop web servers or frameworks. Its core has been developed using the [GNU libmicrohttpd](https://www.gnu.org/software/libmicrohttpd), [uthash](https://troydhanson.github.io/uthash), [PCRE2](https://www.pcre.org), [ZLib](https://www.zlib.net) and [GnuTLS](https://www.gnutls.org), that's why it is so fast, compact and useful to run on embedded systems.
 
 # Features
 

+ 1 - 1
src/sg_httpres.c

@@ -408,7 +408,7 @@ error:
 
 int sg_httpres_zsendbinary(struct sg_httpres *res, void *buf, size_t size, const char *content_type,
                            unsigned int status) {
-    return sg_httpres_zsendbinary2(res, Z_BEST_SPEED, buf, size, content_type, status);
+    return sg_httpres_zsendbinary2(res, Z_BEST_COMPRESSION, buf, size, content_type, status);
 }
 
 int sg_httpres_zsendstream2(struct sg_httpres *res, int level, uint64_t size, sg_read_cb read_cb, void *handle,