define HTTP_METHOD_STR as static const to save RAM (#9594)
This commit is contained in:
parent
c2971f5fe6
commit
e883a2ccfa
1 changed files with 1 additions and 1 deletions
|
|
@ -32,7 +32,7 @@
|
||||||
|
|
||||||
#define __STR(a) #a
|
#define __STR(a) #a
|
||||||
#define _STR(a) __STR(a)
|
#define _STR(a) __STR(a)
|
||||||
const char *_http_method_str[] = {
|
static const char *_http_method_str[] = {
|
||||||
#define XX(num, name, string) _STR(name),
|
#define XX(num, name, string) _STR(name),
|
||||||
HTTP_METHOD_MAP(XX)
|
HTTP_METHOD_MAP(XX)
|
||||||
#undef XX
|
#undef XX
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue