From 620026f46d0805aa96551805707edcd30392d073 Mon Sep 17 00:00:00 2001 From: Mathieu Carbou Date: Sat, 25 Jan 2025 15:19:52 +0100 Subject: [PATCH] Update license headers on source files to be compliant with LGPL, by using the SPDX identifier. The project is under LGPL license so the source files should reflect that by having a license header compliant with LGPL, or at least have an appropriate SPDX header. This changed is required to allow the source files to be used in downstream project because some files are not licensed in accordance to the LPGL rules. Refs: - https://www.gnu.org/licenses/gpl-howto.html - https://spdx.dev/learn/handling-license-info/ - https://spdx.org/licenses/LGPL-3.0-or-later.html --- examples/CaptivePortal/CaptivePortal.ino | 3 ++ examples/Filters/Filters.ino | 3 ++ examples/Issue162/Issue162.ino | 3 ++ examples/Issue85/Issue85.ino | 3 ++ examples/SSE_perftest/SSE_perftest.ino | 4 ++- examples/SimpleServer/SimpleServer.ino | 5 ++-- examples/StreamFiles/StreamConcat.h | 3 ++ examples/StreamFiles/StreamFiles.ino | 3 ++ src/AsyncEventSource.cpp | 20 ++------------ src/AsyncEventSource.h | 20 ++------------ src/AsyncJson.cpp | 3 ++ src/AsyncJson.h | 35 ++---------------------- src/AsyncMessagePack.cpp | 3 ++ src/AsyncMessagePack.h | 3 ++ src/AsyncWebHeader.cpp | 3 ++ src/AsyncWebSocket.cpp | 21 ++------------ src/AsyncWebSocket.h | 23 ++-------------- src/ChunkPrint.cpp | 3 ++ src/ChunkPrint.h | 3 ++ src/ESPAsyncWebServer.h | 21 ++------------ src/Middleware.cpp | 3 ++ src/WebAuthentication.cpp | 23 ++-------------- src/WebAuthentication.h | 22 ++------------- src/WebHandlerImpl.h | 21 ++------------ src/WebHandlers.cpp | 23 ++-------------- src/WebRequest.cpp | 23 ++-------------- src/WebResponseImpl.h | 23 ++-------------- src/WebResponses.cpp | 21 ++------------ src/WebServer.cpp | 23 ++-------------- src/literals.h | 3 ++ 30 files changed, 82 insertions(+), 288 deletions(-) diff --git a/examples/CaptivePortal/CaptivePortal.ino b/examples/CaptivePortal/CaptivePortal.ino index e2badac5..f12ad901 100644 --- a/examples/CaptivePortal/CaptivePortal.ino +++ b/examples/CaptivePortal/CaptivePortal.ino @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include #ifdef ESP32 #include diff --git a/examples/Filters/Filters.ino b/examples/Filters/Filters.ino index 6a83d75d..3494e333 100644 --- a/examples/Filters/Filters.ino +++ b/examples/Filters/Filters.ino @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + // Reproduced issue https://github.com/ESP32Async/ESPAsyncWebServer/issues/26 #include diff --git a/examples/Issue162/Issue162.ino b/examples/Issue162/Issue162.ino index e86d9c55..48b8929b 100644 --- a/examples/Issue162/Issue162.ino +++ b/examples/Issue162/Issue162.ino @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + /** * * Connect to AP and run in bash: diff --git a/examples/Issue85/Issue85.ino b/examples/Issue85/Issue85.ino index 501a1f75..4d0bc226 100644 --- a/examples/Issue85/Issue85.ino +++ b/examples/Issue85/Issue85.ino @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + /** * * Connect to AP and run in bash: diff --git a/examples/SSE_perftest/SSE_perftest.ino b/examples/SSE_perftest/SSE_perftest.ino index b05e00ea..c218187e 100644 --- a/examples/SSE_perftest/SSE_perftest.ino +++ b/examples/SSE_perftest/SSE_perftest.ino @@ -1,4 +1,6 @@ -// +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + // SSE server with a load generator // it will auto adjust message push rate to minimize discards across all connected clients // per second stats is printed to a serial console and also published as SSE ping message diff --git a/examples/SimpleServer/SimpleServer.ino b/examples/SimpleServer/SimpleServer.ino index a17c46a5..250e4543 100644 --- a/examples/SimpleServer/SimpleServer.ino +++ b/examples/SimpleServer/SimpleServer.ino @@ -1,9 +1,10 @@ -// +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + // A simple server implementation showing how to: // * serve static messages // * read GET and POST parameters // * handle missing pages / 404s -// #include #ifdef ESP32 diff --git a/examples/StreamFiles/StreamConcat.h b/examples/StreamFiles/StreamConcat.h index 3698dba4..33b4917f 100644 --- a/examples/StreamFiles/StreamConcat.h +++ b/examples/StreamFiles/StreamConcat.h @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #pragma once #include diff --git a/examples/StreamFiles/StreamFiles.ino b/examples/StreamFiles/StreamFiles.ino index bee4587e..2a531a34 100644 --- a/examples/StreamFiles/StreamFiles.ino +++ b/examples/StreamFiles/StreamFiles.ino @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include #include #ifdef ESP32 diff --git a/src/AsyncEventSource.cpp b/src/AsyncEventSource.cpp index 96079337..f44422db 100644 --- a/src/AsyncEventSource.cpp +++ b/src/AsyncEventSource.cpp @@ -1,22 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ #include "Arduino.h" #if defined(ESP32) #include diff --git a/src/AsyncEventSource.h b/src/AsyncEventSource.h index 141d95cc..452e24d1 100644 --- a/src/AsyncEventSource.h +++ b/src/AsyncEventSource.h @@ -1,22 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ #ifndef ASYNCEVENTSOURCE_H_ #define ASYNCEVENTSOURCE_H_ diff --git a/src/AsyncJson.cpp b/src/AsyncJson.cpp index e9cba6e5..44d515d6 100644 --- a/src/AsyncJson.cpp +++ b/src/AsyncJson.cpp @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "AsyncJson.h" #if ASYNC_JSON_SUPPORT == 1 diff --git a/src/AsyncJson.h b/src/AsyncJson.h index 7fbd67bb..b5777d63 100644 --- a/src/AsyncJson.h +++ b/src/AsyncJson.h @@ -1,37 +1,6 @@ -// AsyncJson.h -/* - Async Response to use with ArduinoJson and AsyncWebServer - Written by Andrew Melvin (SticilFace) with help from me-no-dev and BBlanchon. +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - Example of callback in use - - server.on("/json", HTTP_ANY, [](AsyncWebServerRequest * request) { - - AsyncJsonResponse * response = new AsyncJsonResponse(); - JsonObject& root = response->getRoot(); - root["key1"] = "key number one"; - JsonObject& nested = root.createNestedObject("nested"); - nested["key1"] = "key number one"; - - response->setLength(); - request->send(response); - }); - - -------------------- - - Async Request to use with ArduinoJson and AsyncWebServer - Written by Arsène von Wyss (avonwyss) - - Example - - AsyncCallbackJsonWebHandler* handler = new AsyncCallbackJsonWebHandler("/rest/endpoint"); - handler->onRequest([](AsyncWebServerRequest *request, JsonVariant &json) { - JsonObject jsonObj = json.as(); - // ... - }); - server.addHandler(handler); - -*/ #ifndef ASYNC_JSON_H_ #define ASYNC_JSON_H_ diff --git a/src/AsyncMessagePack.cpp b/src/AsyncMessagePack.cpp index d4b74ed0..dd75703a 100644 --- a/src/AsyncMessagePack.cpp +++ b/src/AsyncMessagePack.cpp @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "AsyncMessagePack.h" #if ASYNC_MSG_PACK_SUPPORT == 1 diff --git a/src/AsyncMessagePack.h b/src/AsyncMessagePack.h index 91b832b2..7488b5cb 100644 --- a/src/AsyncMessagePack.h +++ b/src/AsyncMessagePack.h @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #pragma once /* diff --git a/src/AsyncWebHeader.cpp b/src/AsyncWebHeader.cpp index b3e17409..a12b939b 100644 --- a/src/AsyncWebHeader.cpp +++ b/src/AsyncWebHeader.cpp @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include AsyncWebHeader::AsyncWebHeader(const String &data) { diff --git a/src/AsyncWebSocket.cpp b/src/AsyncWebSocket.cpp index c9e58501..369af276 100644 --- a/src/AsyncWebSocket.cpp +++ b/src/AsyncWebSocket.cpp @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ #include "AsyncWebSocket.h" #include "Arduino.h" diff --git a/src/AsyncWebSocket.h b/src/AsyncWebSocket.h index 541ee741..808a08d3 100644 --- a/src/AsyncWebSocket.h +++ b/src/AsyncWebSocket.h @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #ifndef ASYNCWEBSOCKET_H_ #define ASYNCWEBSOCKET_H_ diff --git a/src/ChunkPrint.cpp b/src/ChunkPrint.cpp index ab1082b2..4617d34a 100644 --- a/src/ChunkPrint.cpp +++ b/src/ChunkPrint.cpp @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include ChunkPrint::ChunkPrint(uint8_t *destination, size_t from, size_t len) : _destination(destination), _to_skip(from), _to_write(len), _pos{0} {} diff --git a/src/ChunkPrint.h b/src/ChunkPrint.h index 7afa9324..04938b3f 100644 --- a/src/ChunkPrint.h +++ b/src/ChunkPrint.h @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #ifndef CHUNKPRINT_H #define CHUNKPRINT_H diff --git a/src/ESPAsyncWebServer.h b/src/ESPAsyncWebServer.h index e0031cf1..a0ea0a4a 100644 --- a/src/ESPAsyncWebServer.h +++ b/src/ESPAsyncWebServer.h @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ #ifndef _ESPAsyncWebServer_H_ #define _ESPAsyncWebServer_H_ diff --git a/src/Middleware.cpp b/src/Middleware.cpp index b410f554..805eaef1 100644 --- a/src/Middleware.cpp +++ b/src/Middleware.cpp @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "WebAuthentication.h" #include diff --git a/src/WebAuthentication.cpp b/src/WebAuthentication.cpp index e8885777..3669c1a4 100644 --- a/src/WebAuthentication.cpp +++ b/src/WebAuthentication.cpp @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "WebAuthentication.h" #include #if defined(ESP32) || defined(TARGET_RP2040) diff --git a/src/WebAuthentication.h b/src/WebAuthentication.h index 45fec4dc..1711821f 100644 --- a/src/WebAuthentication.h +++ b/src/WebAuthentication.h @@ -1,23 +1,5 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov #ifndef WEB_AUTHENTICATION_H_ #define WEB_AUTHENTICATION_H_ diff --git a/src/WebHandlerImpl.h b/src/WebHandlerImpl.h index 75a60be6..99a91114 100644 --- a/src/WebHandlerImpl.h +++ b/src/WebHandlerImpl.h @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ #ifndef ASYNCWEBSERVERHANDLERIMPL_H_ #define ASYNCWEBSERVERHANDLERIMPL_H_ diff --git a/src/WebHandlers.cpp b/src/WebHandlers.cpp index bdb01aaa..762a373a 100644 --- a/src/WebHandlers.cpp +++ b/src/WebHandlers.cpp @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "ESPAsyncWebServer.h" #include "WebHandlerImpl.h" diff --git a/src/WebRequest.cpp b/src/WebRequest.cpp index 8fb3bf4d..b8ada4cf 100644 --- a/src/WebRequest.cpp +++ b/src/WebRequest.cpp @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "ESPAsyncWebServer.h" #include "WebAuthentication.h" #include "WebResponseImpl.h" diff --git a/src/WebResponseImpl.h b/src/WebResponseImpl.h index 340e3e3c..80dbca8f 100644 --- a/src/WebResponseImpl.h +++ b/src/WebResponseImpl.h @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #ifndef ASYNCWEBSERVERRESPONSEIMPL_H_ #define ASYNCWEBSERVERRESPONSEIMPL_H_ diff --git a/src/WebResponses.cpp b/src/WebResponses.cpp index a1558fda..5fd087e1 100644 --- a/src/WebResponses.cpp +++ b/src/WebResponses.cpp @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ #include "ESPAsyncWebServer.h" #include "WebResponseImpl.h" diff --git a/src/WebServer.cpp b/src/WebServer.cpp index dfeac206..062e9643 100644 --- a/src/WebServer.cpp +++ b/src/WebServer.cpp @@ -1,23 +1,6 @@ -/* - Asynchronous WebServer library for Espressif MCUs - - Copyright (c) 2016 Hristo Gochkov. All rights reserved. - This file is part of the esp8266 core for Arduino environment. - - This library is free software; you can redistribute it and/or - modify it under the terms of the GNU Lesser General Public - License as published by the Free Software Foundation; either - version 2.1 of the License, or (at your option) any later version. - - This library is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - Lesser General Public License for more details. - - You should have received a copy of the GNU Lesser General Public - License along with this library; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA -*/ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #include "ESPAsyncWebServer.h" #include "WebHandlerImpl.h" diff --git a/src/literals.h b/src/literals.h index d7a5b6e2..7cfdea67 100644 --- a/src/literals.h +++ b/src/literals.h @@ -1,3 +1,6 @@ +// SPDX-License-Identifier: LGPL-3.0-or-later +// Copyright 2016-2025 Hristo Gochkov, Mathieu Carbou, Emil Muratov + #pragma once namespace asyncsrv {