mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
engine: common: http: optimistically treat https as http as a temporary hack
This commit is contained in:
@@ -994,12 +994,22 @@ static void HTTP_Download_f( void )
|
||||
HTTP_ParseURL
|
||||
==============
|
||||
*/
|
||||
static httpserver_t *HTTP_ParseURL( const char *url )
|
||||
static httpserver_t *HTTP_ParseURL( const char *url_ )
|
||||
{
|
||||
httpserver_t *server;
|
||||
int i;
|
||||
const char *url = NULL;
|
||||
|
||||
url = Q_strstr( url, "http://" );
|
||||
url = Q_strstr( url_, "http://" );
|
||||
|
||||
if( url )
|
||||
url += 7;
|
||||
else
|
||||
{
|
||||
url = Q_strstr( url_, "https://" );
|
||||
if( url )
|
||||
url += 8;
|
||||
}
|
||||
|
||||
if( !url )
|
||||
return NULL;
|
||||
|
||||
Reference in New Issue
Block a user