Skip to content

Conversation

@chschu
Copy link
Contributor

@chschu chschu commented Oct 15, 2017

This PR for #2557 changes the _currentUpload field in the ESP8266WebServer class to std::unique_ptr<HTTPUpload>, and allocates/deallocates it on demand.

Commit 67f4fc4 eliminates most of the exit paths in ESP8266WebServer::handleClient. It moves the client reset and yield() call to the end of the function, introduces else clauses to remove exit paths, and inverts if/else constructs to simplify the function.

@igrr igrr merged commit e71ec77 into esp8266:master Oct 22, 2017
@chschu chschu deleted the bugfix/webserver_upload_memory branch November 1, 2017 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants