Skip to content

Commit

Permalink
minor adjustments.
Browse files Browse the repository at this point in the history
  • Loading branch information
sticilface committed Dec 4, 2016
1 parent 6bcbacc commit 89df1d2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/ESPmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -318,16 +318,16 @@ int ESPmanager::begin()

_HTTP.serveStatic("/espman/index.htm", _fs, "/espman/index.htm" );

//_HTTP.serveStatic("/espman/setup.htm", SPIFFS, "/espman/setup.htm" );
_HTTP.serveStatic("/espman/setup.htm", _fs, "/espman/setup.htm" );

_HTTP.on("/espman/setup.htm", [this](AsyncWebServerRequest * request) {
// _HTTP.on("/espman/setup.htm", [this](AsyncWebServerRequest * request) {

AsyncWebServerResponse *response = request->beginResponse(_fs, "/espman/setup.htm");
//response->addHeader("Server","ESP Async Web Server");
response->addHeader(ESPMAN::string_CORS, "*");
request->send(response);
// AsyncWebServerResponse *response = request->beginResponse(_fs, "/espman/setup.htm");
// //response->addHeader("Server","ESP Async Web Server");
// response->addHeader(ESPMAN::string_CORS, "*");
// request->send(response);

});
// });



Expand Down Expand Up @@ -367,7 +367,7 @@ int ESPmanager::begin()
// }).setFilter(ON_STA_FILTER);


_HTTP.serveStatic("/espman/", _fs, "/espman/"); //.setLastModified(getCompileTime());
//_HTTP.serveStatic("/espman/", _fs, "/espman/"); //.setLastModified(getCompileTime());

// _HTTP.serveStatic("/jquery", _fs, "/jquery/").setCacheControl("max-age:86400").setFilter(ON_AP_FILTER);

Expand Down

0 comments on commit 89df1d2

Please sign in to comment.