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

This commit is contained in:
Craig Link 2024-05-07 22:08:18 -07:00 committed by GitHub
parent c2971f5fe6
commit e883a2ccfa
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -32,7 +32,7 @@
#define __STR(a) #a
#define _STR(a) __STR(a)
const char *_http_method_str[] = {
static const char *_http_method_str[] = {
#define XX(num, name, string) _STR(name),
HTTP_METHOD_MAP(XX)
#undef XX