Fixed headers/cookies not being set
This commit is contained in:
parent
4b412828e1
commit
4ef5ea5970
@ -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>
|
||||
|
@ -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
|
||||
{
|
||||
|
@ -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
|
||||
|
@ -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()
|
||||
|
@ -1 +1 @@
|
||||
1.1.1
|
||||
1.1.2
|
||||
|
Loading…
Reference in New Issue
Block a user