buglwIP - A Lightweight TCP/IP stack - Bugs: bug #53382, HTTPD_ADDITIONAL_CONTENT_TYPES...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #53382: HTTPD_ADDITIONAL_CONTENT_TYPES doesn't compile

Submitter:  Giuseppe Modugno <giusloq>
Submitted:  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:  Closed Planned Release:  None
lwIP version:  git head

Mon 19 Mar 2018 12:39:07 PM UTC, original submission:  

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.

Giuseppe Modugno <giusloq>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by axellin (Updated the item)
  • -email is unavailable- added by giusloq (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    Follows 1 latest change.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-03-19 axellin Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code