Skip to content
This repository has been archived by the owner on Jan 20, 2025. It is now read-only.

WebRequest.cpp modifications to prevent exception that reboot ESP32 #1456

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

SilvestreArduino
Copy link

WebRequest.cpp modifications to prevent exception that reboot ESP32:

In the master version, AsyncWebServerRequest::_removeNotInterestingHeaders() produce a exception in if(!_interestingHeaders.containsIgnoreCase(header->name().c_str())){ _headers.remove(header); } sentence.

Guru Meditation Error occurred due to a LoadProhibited exception. This type of error happens when the CPU tries to dereference a pointer that is either NULL or invalid.

Copilot suggested a modification in lines 181-188 of Webrequest.cpp and now it works fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant