[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] [bug #53382] HTTPD_ADDITIONAL_CONTENT_TYPES doesn't compile
From: |
Giuseppe Modugno |
Subject: |
[lwip-devel] [bug #53382] HTTPD_ADDITIONAL_CONTENT_TYPES doesn't compile |
Date: |
Mon, 19 Mar 2018 08:39:10 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/64.0.3282.186 Safari/537.36 |
URL:
<http://savannah.nongnu.org/bugs/?53382>
Summary: HTTPD_ADDITIONAL_CONTENT_TYPES doesn't compile
Project: lwIP - A Lightweight TCP/IP stack
Submitted by: giusloq
Submitted on: Mon 19 Mar 2018 12:39:07 PM UTC
Category: apps
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
Planned Release: None
lwIP version: git head
_______________________________________________________
Details:
In httpd_structs.h the g_psHTTPHeaders[] array is defined as:
static const tHTTPHeader g_psHTTPHeaders[] = {
{ "html", HTTP_HDR_HTML},
[...]
{ "json", HTTP_HDR_JSON},
#ifdef HTTPD_ADDITIONAL_CONTENT_TYPES
/* If you need to add content types not listed here:
* #define HTTPD_ADDITIONAL_CONTENT_TYPES {"ct1",
HTTP_CONTENT_TYPE("text/ct1")}, {"exe", HTTP_CONTENT_TYPE("application/exe")}
*/
, HTTPD_ADDITIONAL_CONTENT_TYPES
#endif
};
There's an extra comma that triggers a compilation error.
_______________________________________________________
Reply to this item at:
<http://savannah.nongnu.org/bugs/?53382>
_______________________________________________
Message sent via/by Savannah
http://savannah.nongnu.org/
- [lwip-devel] [bug #53382] HTTPD_ADDITIONAL_CONTENT_TYPES doesn't compile,
Giuseppe Modugno <=