Merged in masayuki2009/nuttx.apps/mp3_on_webserver (pull request #180)

netutils/webserver: Add mp3 mime type to httpd.c

Signed-off-by: Masayuki Ishikawa <Masayuki.Ishikawa@jp.sony.com>

Approved-by: Gregory Nutt <gnutt@nuttx.org>
This commit is contained in:
Masayuki Ishikawa 2019-07-04 11:28:29 +00:00 committed by Gregory Nutt
parent b12b61df69
commit c1317331d3

View File

@ -466,7 +466,9 @@ static int send_headers(struct httpd_state *pstate, int status, int len)
{ "png", "image/png" },
{ "gif", "image/gif" },
{ "jpeg", "image/jpeg" },
{ "jpg", "image/jpeg" }
{ "jpg", "image/jpeg" },
{ "mp3", "audio/mpeg" }
};
ptr = strrchr(pstate->ht_filename, ISO_period);