mirror of
https://github.com/ep00ch/lwip-contrib-mac.git
synced 2024-06-02 10:41:29 +00:00
httpd: move some variables from rwdata- to rodata- or bss-section
This commit is contained in:
parent
1c84fa5e5d
commit
b73187713f
|
@ -276,7 +276,7 @@ static char http_post_response_filename[LWIP_HTTPD_POST_MAX_RESPONSE_URI_LEN+1];
|
||||||
|
|
||||||
#define HTTPD_LAST_TAG_PART 0xFFFF
|
#define HTTPD_LAST_TAG_PART 0xFFFF
|
||||||
|
|
||||||
const char *g_pcSSIExtensions[] = {
|
const char * const g_pcSSIExtensions[] = {
|
||||||
".shtml", ".shtm", ".ssi", ".xml"
|
".shtml", ".shtm", ".ssi", ".xml"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -365,8 +365,8 @@ const char * const g_pcTagLeadOut = "-->";
|
||||||
|
|
||||||
#if LWIP_HTTPD_CGI
|
#if LWIP_HTTPD_CGI
|
||||||
/* CGI handler information */
|
/* CGI handler information */
|
||||||
const tCGI *g_pCGIs = NULL;
|
const tCGI *g_pCGIs;
|
||||||
int g_iNumCGIs = 0;
|
int g_iNumCGIs;
|
||||||
#endif /* LWIP_HTTPD_CGI */
|
#endif /* LWIP_HTTPD_CGI */
|
||||||
|
|
||||||
#if LWIP_HTTPD_STRNSTR_PRIVATE
|
#if LWIP_HTTPD_STRNSTR_PRIVATE
|
||||||
|
|
|
@ -28,7 +28,7 @@ typedef struct
|
||||||
} tHTTPHeader;
|
} tHTTPHeader;
|
||||||
|
|
||||||
/** A list of strings used in HTTP headers */
|
/** A list of strings used in HTTP headers */
|
||||||
static const char *g_psHTTPHeaderStrings[] =
|
static const char * const g_psHTTPHeaderStrings[] =
|
||||||
{
|
{
|
||||||
"Content-type: text/html\r\n\r\n",
|
"Content-type: text/html\r\n\r\n",
|
||||||
"Content-type: text/html\r\nExpires: Fri, 10 Apr 2008 14:00:00 GMT\r\nPragma: no-cache\r\n\r\n",
|
"Content-type: text/html\r\nExpires: Fri, 10 Apr 2008 14:00:00 GMT\r\nPragma: no-cache\r\n\r\n",
|
||||||
|
@ -87,7 +87,7 @@ static const char *g_psHTTPHeaderStrings[] =
|
||||||
#define DEFAULT_404_HTML 25 /* default 404 body */
|
#define DEFAULT_404_HTML 25 /* default 404 body */
|
||||||
|
|
||||||
/** A list of extension-to-HTTP header strings */
|
/** A list of extension-to-HTTP header strings */
|
||||||
static tHTTPHeader g_psHTTPHeaders[] =
|
const static tHTTPHeader g_psHTTPHeaders[] =
|
||||||
{
|
{
|
||||||
{ "html", HTTP_HDR_HTML},
|
{ "html", HTTP_HDR_HTML},
|
||||||
{ "htm", HTTP_HDR_HTML},
|
{ "htm", HTTP_HDR_HTML},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user