diff options
| author | Jeff Armstrong <jeffrey.armstrong@approximatrix.com> | 2017-02-11 12:45:49 -0500 |
|---|---|---|
| committer | Jeff Armstrong <jeffrey.armstrong@approximatrix.com> | 2017-02-11 12:45:49 -0500 |
| commit | 292d276205c04d3ff944f56e27db18852b3a9e62 (patch) | |
| tree | a5e8d022a024b9834504e4a7bca2d92b72fa26d9 /httpd/httpd.c | |
| parent | 621c26567548e514fc793d35b208a3542b73f023 (diff) | |
| download | uIP-FOSSIL-292d276205c04d3ff944f56e27db18852b3a9e62.tar.gz uIP-FOSSIL-292d276205c04d3ff944f56e27db18852b3a9e62.zip | |
Added support for RSS feeds (via an RSS file).
Diffstat (limited to 'httpd/httpd.c')
| -rw-r--r-- | httpd/httpd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/httpd/httpd.c b/httpd/httpd.c index 459bfa2..d4cbbd6 100644 --- a/httpd/httpd.c +++ b/httpd/httpd.c @@ -119,6 +119,9 @@ static PT_THREAD(send_headers(struct httpd_state *s, const char *statushdr)) PSOCK_SEND_STR(&s->sout, http_content_type_gif); } else if(strncmp(http_jpg, ptr, 4) == 0) { PSOCK_SEND_STR(&s->sout, http_content_type_jpg); + } else if(strncmp(http_rss, ptr, 4) == 0 || + strncmp(http_rgz, ptr, 4) == 0) { + PSOCK_SEND_STR(&s->sout, http_content_type_rss); } else { PSOCK_SEND_STR(&s->sout, http_content_type_plain); } |
