summaryrefslogtreecommitdiff
path: root/httpd/http-str.c
diff options
context:
space:
mode:
authorJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-12-14 09:14:39 -0500
committerJeffrey Armstrong <jeffrey.armstrong@approximatrix.com>2016-12-14 09:14:39 -0500
commitdc65ef038279df55d5e49052eabac4eae2617ee1 (patch)
tree84c7ffc081482c18c2bc0a6ddb1a4d6dd260f925 /httpd/http-str.c
parent84de937689bcb35ea3ddae55d9c74dc23463f79c (diff)
downloaduIP-FOSSIL-dc65ef038279df55d5e49052eabac4eae2617ee1.tar.gz
uIP-FOSSIL-dc65ef038279df55d5e49052eabac4eae2617ee1.zip
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.
Diffstat (limited to 'httpd/http-str.c')
-rw-r--r--httpd/http-str.c15
1 files changed, 15 insertions, 0 deletions
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};