Fixed headers/cookies not being set

This commit is contained in:
Frederik Haselmeier 2020-02-02 02:58:12 +01:00
parent 4b412828e1
commit 4ef5ea5970
5 changed files with 5 additions and 4 deletions

View File

@ -3,6 +3,7 @@
//
#ifndef GWSOCKETS_GWSOCKET_H
#define GWSOCKETS_GWSOCKET_H
#define BOOST_BEAST_ALLOW_DEPRECATED
#include <boost/beast/core.hpp>
#include <boost/beast/websocket.hpp>
#include <boost/asio/connect.hpp>

View File

@ -87,7 +87,7 @@ void SSLWebSocket::sslHandshakeComplete(const boost::system::error_code& ec, std
{
if (!ec)
{
this->getWS()->async_handshake(host, path, boost::bind(&SSLWebSocket::handshakeCompleted, this, boost::placeholders::_1));
this->getWS()->async_handshake_ex(host, path, decorator, boost::bind(&SSLWebSocket::handshakeCompleted, this, boost::placeholders::_1));
}
else
{

View File

@ -2,7 +2,7 @@
//I'm trying to make this as easy for anyone to adapt to their own module
//So if you want to use this, feel free
#define MODULE_VERSION "1.1.1" //The version of the current build
#define MODULE_VERSION "1.1.2" //The version of the current build
#define MODULE_VERSION_URL "https://raw.githubusercontent.com/FredyH/GWSockets/master/version.txt" //A URL to a txt file containing only the version number of the latest version
#define MODULE_NAME "GWSockets" //The name of this program
#define MODULE_RELEASE_URL "https://github.com/FredyH/GWSockets/releases" //A URL to the latest releases

View File

@ -13,7 +13,7 @@ void WebSocket::asyncConnect(tcp::resolver::iterator it)
void WebSocket::asyncHandshake(std::string host, std::string path, std::function<void(websocket::request_type&)> decorator)
{
this->getWS()->async_handshake(host, path, boost::bind(&WebSocket::handshakeCompleted, this, boost::placeholders::_1));
this->getWS()->async_handshake_ex(host, path, decorator, boost::bind(&WebSocket::handshakeCompleted, this, boost::placeholders::_1));
}
void WebSocket::asyncRead()

View File

@ -1 +1 @@
1.1.1
1.1.2