Commit 21842866 authored by Sergey Lyubka's avatar Sergey Lyubka

License change

parent 04fc2096
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 This code is dual-licensed: you can redistribute it and/or modify
of this software and associated documentation files (the "Software"), to deal it under the terms of the GNU General Public License version 2 as
in the Software without restriction, including without limitation the rights published by the Free Software Foundation. For the terms of this
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell license, see <http://www.gnu.org/licenses/>.
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in You are free to use this code under the terms of the GNU General
all copies or substantial portions of the Software. 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 Alternatively, you can license this code under a commercial
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, license, as set out in <http://cesanta.com/products.html>.
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.
// 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 // This library is dual-licensed: you can redistribute it and/or modify
// of this software and associated documentation files (the "Software"), to deal // it under the terms of the GNU General Public License version 2 as
// in the Software without restriction, including without limitation the rights // published by the Free Software Foundation. For the terms of this
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // license, see <http://www.gnu.org/licenses/>.
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// //
// The above copyright notice and this permission notice shall be included in // You are free to use this library under the terms of the GNU General
// all copies or substantial portions of the Software. // 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 // Alternatively, you can license this library under a commercial
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // license, as set out in <http://cesanta.com/products.html>.
// 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.
#if defined(_WIN32) #if defined(_WIN32)
#if !defined(_CRT_SECURE_NO_WARNINGS) #if !defined(_CRT_SECURE_NO_WARNINGS)
...@@ -309,6 +306,11 @@ typedef int socklen_t; ...@@ -309,6 +306,11 @@ typedef int socklen_t;
#define MGSQLEN 20 #define MGSQLEN 20
#endif #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"; static const char *http_500_error = "Internal Server Error";
#if defined(NO_SSL_DL) #if defined(NO_SSL_DL)
......
// 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 // This library is dual-licensed: you can redistribute it and/or modify
// of this software and associated documentation files (the "Software"), to deal // it under the terms of the GNU General Public License version 2 as
// in the Software without restriction, including without limitation the rights // published by the Free Software Foundation. For the terms of this
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell // license, see <http://www.gnu.org/licenses/>.
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
// //
// The above copyright notice and this permission notice shall be included in // You are free to use this library under the terms of the GNU General
// all copies or substantial portions of the Software. // 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 // Alternatively, you can license this library under a commercial
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, // license, as set out in <http://cesanta.com/products.html>.
// 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.
#ifndef MONGOOSE_HEADER_INCLUDED #ifndef MONGOOSE_HEADER_INCLUDED
#define MONGOOSE_HEADER_INCLUDED #define MONGOOSE_HEADER_INCLUDED
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment