Skip to content

Commit 3cbf303

Browse files
authored
FIX StaticRequestHandler crashes when cache_header is null and DEBUG_ESP_CORE is enabled (#7609)
1 parent 32470fb commit 3cbf303

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/ESP8266WebServer/src/detail/RequestHandlersImpl.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class StaticRequestHandler : public RequestHandler<ServerType> {
8181
_isFile = false;
8282
}
8383

84-
DEBUGV("StaticRequestHandler: path=%s uri=%s isFile=%d, cache_header=%s\r\n", path, uri, _isFile, cache_header);
84+
DEBUGV("StaticRequestHandler: path=%s uri=%s isFile=%d, cache_header=%s\r\n", path, uri, _isFile, cache_header == __null ? "" : cache_header);
8585
_baseUriLength = _uri.length();
8686
}
8787

0 commit comments

Comments
 (0)