Unverified Commit e883a2cc authored by Craig Link's avatar Craig Link Committed by GitHub

define HTTP_METHOD_STR as static const to save RAM (#9594)

parent c2971f5f
...@@ -32,7 +32,7 @@ ...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment