summaryrefslogtreecommitdiff
path: root/nuttx/netutils
diff options
context:
space:
mode:
Diffstat (limited to 'nuttx/netutils')
-rw-r--r--nuttx/netutils/thttpd/mime_types.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/nuttx/netutils/thttpd/mime_types.h b/nuttx/netutils/thttpd/mime_types.h
index ef2106af9..531605b66 100644
--- a/nuttx/netutils/thttpd/mime_types.h
+++ b/nuttx/netutils/thttpd/mime_types.h
@@ -62,6 +62,7 @@ struct mime_entry
/* A list of file extensions followed by the corresponding MIME encoding.
* Extensions not found in the table proceed to the mime_types table.
+ * Must be ordered by extension so to support binary searches.
*/
static struct mime_entry enc_tab[] =
@@ -74,6 +75,7 @@ static const int n_enc_tab = sizeof(enc_tab) / sizeof(*enc_tab);
/* A list of file extensions followed by the corresponding MIME type.
* Extensions not found in the table are returned as text/plain.
+ * Must be ordered by extension so to support binary searches.
*/
static struct mime_entry typ_tab[] =