From 184cc8277cb93879aaa805aef6fcde9dd48be057 Mon Sep 17 00:00:00 2001 From: Dario Date: Thu, 10 Oct 2019 12:31:55 +0200 Subject: [PATCH] disable secure cookie for windows, fix header for unix --- src/cpp/MySQL/Poco/Binder.h | 2 +- src/cpp/model/Session.cpp | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/cpp/MySQL/Poco/Binder.h b/src/cpp/MySQL/Poco/Binder.h index 487a6a668..ada42d5f6 100644 --- a/src/cpp/MySQL/Poco/Binder.h +++ b/src/cpp/MySQL/Poco/Binder.h @@ -17,7 +17,7 @@ #ifndef Data_MySQL_Binder_INCLUDED #define Data_MySQL_Binder_INCLUDED -#include "Poco/MySQL.h" +#include "MySQL.h" #include "Poco/Data/AbstractBinder.h" #include "Poco/Data/LOB.h" #include "Poco/MySQLException.h" diff --git a/src/cpp/model/Session.cpp b/src/cpp/model/Session.cpp index 4969c260e..198873982 100644 --- a/src/cpp/model/Session.cpp +++ b/src/cpp/model/Session.cpp @@ -413,7 +413,9 @@ Poco::Net::HTTPCookie Session::getLoginCookie() // prevent reading or changing cookie with js keks.setHttpOnly(); // send cookie only via https - //keks.setSecure(true); +#ifndef WIN32 + keks.setSecure(true); +#endif return keks; }