lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] Content-Type in httpd_structs.h


From: Fabien Jambois
Subject: [lwip-devel] Content-Type in httpd_structs.h
Date: Mon, 20 Mar 2017 17:06:19 +0100
User-agent: Mozilla/5.0 (Windows NT 5.1; rv:45.0) Gecko/20100101 Thunderbird/45.8.0

Hi developers

According to rfc7231, we have to change "Content-type" to "Content-Type" with upper-case T in httpd_structs.h

And for my application (HTML 5) I had to add the following one:

#define HTTP_HDR_CSV            "Content-Type: text/csv\r\n\r\n"
#define HTTP_HDR_TSV            "Content-Type: text/tsv\r\n\r\n"
#define HTTP_HDR_SVG            "Content-Type: image/svg+xml\r\n\r\n"
#define HTTP_HDR_SVGZ           "Content-Type: image/svg+xml\r\nContent-Encoding: gzip\r\n\r\n"

static const tHTTPHeader g_psHTTPHeaders[] =
{
...
 { "csv",  HTTP_HDR_CSV},
 { "tsv",  HTTP_HDR_TSV},
 { "svg",  HTTP_HDR_SVG},
 { "svgz", HTTP_HDR_SVGZ},
};

--
Best regards
Fabien Jambois



reply via email to

[Prev in Thread] Current Thread [Next in Thread]