diff --git a/LICENSE b/LICENSE index edb19837f409c417dd8a94eb922516efdf771fab..f587d924ec0404e1552db6560dbcb46b9813c003 100644 --- a/LICENSE +++ b/LICENSE @@ -1,19 +1,16 @@ -Copyright (c) 2004-2013 Sergey Lyubka +Copyright (c) 2004-2013 Sergey Lyubka <valenok@gmail.com> +Copyright (c) 2013 Cesanta Software Limited +All rights reserved -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: +This code is dual-licensed: you can redistribute it and/or modify +it under the terms of the GNU General Public License version 2 as +published by the Free Software Foundation. For the terms of this +license, see <http://www.gnu.org/licenses/>. -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. +You are free to use this code under the terms of the GNU General +Public License, but WITHOUT ANY WARRANTY; without even the implied +warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +See the GNU General Public License for more details. -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. +Alternatively, you can license this code under a commercial +license, as set out in <http://cesanta.com/products.html>. diff --git a/mongoose.c b/mongoose.c index 1c3a6e601d9d683f13fcf37b1ac22a43514c489f..1fa1b53eef4dc8fde2f5f351bb5ff51d89873fb9 100644 --- a/mongoose.c +++ b/mongoose.c @@ -1,22 +1,19 @@ -// Copyright (c) 2004-2013 Sergey Lyubka +// Copyright (c) 2004-2013 Sergey Lyubka <valenok@gmail.com> +// Copyright (c) 2013 Cesanta Software Limited +// All rights reserved // -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: +// This library is dual-licensed: you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. For the terms of this +// license, see <http://www.gnu.org/licenses/>. // -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. +// You are free to use this library under the terms of the GNU General +// Public License, but WITHOUT ANY WARRANTY; without even the implied +// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +// See the GNU General Public License for more details. // -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. +// Alternatively, you can license this library under a commercial +// license, as set out in <http://cesanta.com/products.html>. #if defined(_WIN32) #if !defined(_CRT_SECURE_NO_WARNINGS) @@ -309,6 +306,11 @@ typedef int socklen_t; #define MGSQLEN 20 #endif +// Extra HTTP headers to send in every reply +#if !defined(EXTRA_HTTP_HEADERS) +#define EXTRA_HTTP_HEADERS "" +#endif + static const char *http_500_error = "Internal Server Error"; #if defined(NO_SSL_DL) diff --git a/mongoose.h b/mongoose.h index 5e82579407108db341c1077acf13b72f9c8f5511..cc698849393bd2013cc9870ac33e57da40e6e472 100644 --- a/mongoose.h +++ b/mongoose.h @@ -1,22 +1,19 @@ -// Copyright (c) 2004-2012 Sergey Lyubka +// Copyright (c) 2004-2013 Sergey Lyubka <valenok@gmail.com> +// Copyright (c) 2013 Cesanta Software Limited +// All rights reserved // -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: +// This library is dual-licensed: you can redistribute it and/or modify +// it under the terms of the GNU General Public License version 2 as +// published by the Free Software Foundation. For the terms of this +// license, see <http://www.gnu.org/licenses/>. // -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. +// You are free to use this library under the terms of the GNU General +// Public License, but WITHOUT ANY WARRANTY; without even the implied +// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +// See the GNU General Public License for more details. // -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE. +// Alternatively, you can license this library under a commercial +// license, as set out in <http://cesanta.com/products.html>. #ifndef MONGOOSE_HEADER_INCLUDED #define MONGOOSE_HEADER_INCLUDED