-
Notifications
You must be signed in to change notification settings - Fork 13.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add url redirect #8970
Add url redirect #8970
Conversation
Is it possible to merge this, also there is a build problem on Linux? Seems to be not the fault of this PR ... |
What about using this API in our examples ? |
@d-a-v Sorry, but I do not understand your comment. These are examples that do a redirect. My proposal was to add this out-of-the-box of the ESP8266WebServer ... |
Sorry for lack of clarity. |
Oh, sry for being so stupid. Sure, I'll do this in the next few days. |
Looking through the examples I found this:
Why is it needed to stop the client? Should this be done in |
It seems to be a good idea. |
@d-a-v Ok, I finished my work on this. Also did some tests and it looks good. |
Fixed. All checks have passed. 👍 |
I just merged with master and it still looks clean. |
* added getAvailableVersion(), moved _httpClientTimeout and _followRedirects to protected, added enum HTTPUpdateError * auto numbering of HTTPUpdateError enum * added getAvailableVersion(), debug output current current Sketch MD5 * Revert "added getAvailableVersion(), debug output current current Sketch MD5" This reverts commit 60d2c77. * Revert "auto numbering of HTTPUpdateError enum" This reverts commit 61785b2. * Revert "added getAvailableVersion(), moved _httpClientTimeout and _followRedirects to protected, added enum HTTPUpdateError" This reverts commit cec84ed. * add redirect function * enhanced redirect() by cache control and client stop * updated redirect() comment * replaced redirect() API calls in examples * server.client().stop() not needed, redirect() does this
Add redirect function like ESPAsyncWebServer.
Sorry for the wrong commits/reverts. Obviously my master wasn't clean.