1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-16 11:21:18 +03:00

Adding support for OPTIONS requests to ESP8266WebServer

This commit is contained in:
Jeff Ashton
2015-09-13 15:56:34 -04:00
parent a49dd45538
commit eb8c1faa51
2 changed files with 3 additions and 1 deletions

View File

@ -59,6 +59,8 @@ bool ESP8266WebServer::_parseRequest(WiFiClient& client) {
method = HTTP_POST;
} else if (methodStr == "DELETE") {
method = HTTP_DELETE;
} else if (methodStr == "OPTIONS") {
method = HTTP_OPTIONS;
} else if (methodStr == "PUT") {
method = HTTP_PUT;
} else if (methodStr == "PATCH") {