mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-28 05:01:28 +03:00
PROGMEM footprint cleanup for responseCodeToString (#6950)
* PROGMEM footprint cleanup for responseCodeToString Doing returns with String/FlashStringHelper conversion for every case means that the code for doing that is duplicated, which is wasteful. doing it only once saves about 250 bytes (50%) of code size. * Remove "I'm a teapot" error code * Add inline code comment to explain rationale
This commit is contained in:
@ -169,7 +169,7 @@ public:
|
||||
return contentLength;
|
||||
}
|
||||
|
||||
static const String responseCodeToString(const int code);
|
||||
static String responseCodeToString(const int code);
|
||||
|
||||
protected:
|
||||
void _addRequestHandler(RequestHandlerType* handler);
|
||||
|
Reference in New Issue
Block a user