Skip to content

Commit e883a2c

Browse files
authored
define HTTP_METHOD_STR as static const to save RAM (#9594)
1 parent c2971f5 commit e883a2c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: libraries/WebServer/src/Parsing.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232

3333
#define __STR(a) #a
3434
#define _STR(a) __STR(a)
35-
const char *_http_method_str[] = {
35+
static const char *_http_method_str[] = {
3636
#define XX(num, name, string) _STR(name),
3737
HTTP_METHOD_MAP(XX)
3838
#undef XX

0 commit comments

Comments
 (0)