disable secure cookie for windows, fix header for unix

This commit is contained in:
Dario 2019-10-10 12:31:55 +02:00
parent 1840f08ca9
commit 184cc8277c
2 changed files with 4 additions and 2 deletions

View File

@ -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"

View File

@ -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;
}