iupdate https response on invalid http request

This commit is contained in:
Oleg Moskalenko 2016-02-27 22:29:17 -08:00
parent 0c916e1e4b
commit 88bd6268d8

View File

@ -3198,6 +3198,7 @@ static void handle_https(ioa_socket_handle s, ioa_network_buffer_handle nbh)
struct http_request* hr = parse_http_request((char*)ioa_network_buffer_data(nbh));
if(!hr) {
TURN_LOG_FUNC(TURN_LOG_LEVEL_ERROR, "%s: wrong HTTPS request (I cannot parse it)\n", __FUNCTION__);
write_https_logon_page(s);
} else {
TURN_LOG_FUNC(TURN_LOG_LEVEL_INFO, "%s: HTTPS request, path %s\n", __FUNCTION__,hr->path);