fix: website default port

This commit is contained in:
YiFang Xiao 2023-11-13 10:37:22 +08:00
parent 8c8f40cb53
commit d3531b6477

View file

@ -60,7 +60,7 @@ void IframeSchemeHandler::requestStarted( QWebEngineUrlRequestJob * requestJob )
QString root = reply->url().scheme() + "://" + reply->url().host(); QString root = reply->url().scheme() + "://" + reply->url().host();
if ( reply->url().port() != 80 && reply->url().port() != 443 ) { if ( reply->url().port() != 80 && reply->url().port() != 443 && reply->url().port() != -1 ) {
root = root + ":" + QString::number( reply->url().port() ); root = root + ":" + QString::number( reply->url().port() );
} }
QString base = root + reply->url().path(); QString base = root + reply->url().path();