Skip to content

Commit

Permalink
Cleanup headers
Browse files Browse the repository at this point in the history
  • Loading branch information
mathieucarbou committed Aug 11, 2024
1 parent 9f8d8fc commit b4e3054
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/init/REST.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -170,8 +170,6 @@ Mycila::Task initRestApiTask("Init REST API", [](void* params) {
const String data = cfg.readString();
cfg.close();
config.restore(data);
response->addHeader("Connection", "close");
response->addHeader("Access-Control-Allow-Origin", "*");
request->send(response);
},
[](AsyncWebServerRequest* request, String filename, size_t index, uint8_t* data, size_t len, bool final) {
Expand All @@ -196,8 +194,6 @@ Mycila::Task initRestApiTask("Init REST API", [](void* params) {
File serverCertFile = LittleFS.open("/mqtt-server.crt", "r");
logger.info(TAG, "Uploaded MQTT server certificate:\n%s", serverCertFile.readString().c_str());
serverCertFile.close();
response->addHeader("Connection", "close");
response->addHeader("Access-Control-Allow-Origin", "*");
request->send(response);
},
[](AsyncWebServerRequest* request, String filename, size_t index, uint8_t* data, size_t len, bool final) {
Expand Down

0 comments on commit b4e3054

Please sign in to comment.