From 292d276205c04d3ff944f56e27db18852b3a9e62 Mon Sep 17 00:00:00 2001 From: Jeff Armstrong Date: Sat, 11 Feb 2017 12:45:49 -0500 Subject: Added support for RSS feeds (via an RSS file). --- httpd/http-str.c | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'httpd/http-str.c') diff --git a/httpd/http-str.c b/httpd/http-str.c index 6b86ca6..71f2601 100644 --- a/httpd/http-str.c +++ b/httpd/http-str.c @@ -74,6 +74,9 @@ const char http_content_type_jpg [29] = const char http_content_type_binary[43] = /* "Content-type: application/octet-stream\r\n\r\n" */ {0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x63, 0x74, 0x65, 0x74, 0x2d, 0x73, 0x74, 0x72, 0x65, 0x61, 0x6d, 0xd, 0xa, 0xd, 0xa, }; +const char http_content_type_rss [38] = +/* "Content-type: applicaion/rss+xml\r\n\r\n" */ +{0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2d, 0x74, 0x79, 0x70, 0x65, 0x3a, 0x20, 0x61, 0x70, 0x70, 0x6c, 0x69, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x72, 0x73, 0x73, 0x2b, 0x78, 0x6d, 0x6c, 0xd, 0xa, 0xd, 0xa, }; const char http_html[6] = /* ".html" */ {0x2e, 0x68, 0x74, 0x6d, 0x6c, }; @@ -107,6 +110,12 @@ const char http_text[5] = const char http_txt[5] = /* ".txt" */ {0x2e, 0x74, 0x78, 0x74, }; +const char http_rss[5] = +/* ".rss" */ +{0x2e, 0x72, 0x73, 0x73, }; +const char http_rgz[5] = +/* ".rgz" */ +{0x2e, 0x72, 0x67, 0x7a, }; const char http_gzip[4] = /* "gzip" */ {0x67, 0x7a, 0x69, 0x70}; -- cgit v1.2.3