WS proxy fix & MacOS compile warning fix

This commit is contained in:
Ian Craggs 2019-12-10 15:28:48 +00:00
parent ce3601e579
commit 7622c3741b
2 changed files with 3 additions and 3 deletions

View File

@ -198,9 +198,9 @@ int MQTTProtocol_connect(const char* ip_address, Clients* aClient, int websocket
if (timeout < 0)
rc = -1;
else
rc = Socket_new(aClient->net.http_proxy, addr_len, port, &(aClient->net.socket), timeout);
rc = Socket_new(aClient->net.https_proxy, addr_len, port, &(aClient->net.socket), timeout);
#else
rc = Socket_new(aClient->net.http_proxy, addr_len, port, &(aClient->net.socket));
rc = Socket_new(aClient->net.https_proxy, addr_len, port, &(aClient->net.socket));
#endif
}
#endif

View File

@ -379,7 +379,7 @@ int WebSocket_connect( networkHandles *net, const char *uri )
headers_buf_cur += sprintf(headers_buf_cur, "%s: %s\r\n", headers->name, headers->value);
headers++;
}
headers_buf_cur = '\0';
*headers_buf_cur = '\0';
}
for ( i = 0; i < 2; ++i )