From dc65ef038279df55d5e49052eabac4eae2617ee1 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Wed, 14 Dec 2016 09:14:39 -0500 Subject: Now compiles with Turbo C 2.0 using included makefile. Added better logging (to screen). Added supprot for opening and sending gzip'ed files if available on disk. --- httpd/http-str.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'httpd/http-str.c') diff --git a/httpd/http-str.c b/httpd/http-str.c index e556f95..6b86ca6 100644 --- a/httpd/http-str.c +++ b/httpd/http-str.c @@ -83,9 +83,15 @@ const char http_shtml[7] = const char http_htm[5] = /* ".htm" */ {0x2e, 0x68, 0x74, 0x6d, }; +const char http_hgz[5] = +/* ".hgz" */ +{0x2e, 0x68, 0x67, 0x7a, }; const char http_css[5] = /* ".css" */ {0x2e, 0x63, 0x73, 0x73, }; +const char http_cgz[5] = +/* ".css" */ +{0x2e, 0x63, 0x67, 0x7a, }; const char http_png[5] = /* ".png" */ {0x2e, 0x70, 0x6e, 0x67, }; @@ -101,3 +107,12 @@ const char http_text[5] = const char http_txt[5] = /* ".txt" */ {0x2e, 0x74, 0x78, 0x74, }; +const char http_gzip[4] = +/* "gzip" */ +{0x67, 0x7a, 0x69, 0x70}; +const char http_accept_encode[17] = +/* "Accept-Encoding: " */ +{0x41, 0x63, 0x63, 0x65, 0x70, 0x74, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x20}; +const char http_content_encode[24] = +/* "Content-Encoding: gzip\r\n" */ +{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x45, 0x6e, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x3a, 0x20, 0x67, 0x7a, 0x69, 0x70, 0xd, 0xa}; -- cgit v1.2.3