diff --git a/src/AutoConnect.cpp b/src/AutoConnect.cpp index 5cafa1e..7733025 100644 --- a/src/AutoConnect.cpp +++ b/src/AutoConnect.cpp @@ -796,7 +796,8 @@ bool AutoConnect::_classifyHandle(HTTPMethod method, String uri) { } // Dispose decrepit page - _prevUri = _uri; // Save current uri for the upload request + if (_uri.length()) + _prevUri = _uri; // Save current uri for the upload request _purgePages(); // Create the page dynamically