mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-05 05:37:29 +02:00
Return 404 if content is null.
This commit is contained in:
@@ -66,7 +66,11 @@ Api_v1::auth_2( QxtWebRequestEvent* event, QString arg )
|
|||||||
{
|
{
|
||||||
qDebug() << "AUTH_2 HTTP" << event->url.toString() << arg;
|
qDebug() << "AUTH_2 HTTP" << event->url.toString() << arg;
|
||||||
if( event->content.isNull() )
|
if( event->content.isNull() )
|
||||||
|
{
|
||||||
|
qDebug() << "Null content";
|
||||||
|
send404( event );
|
||||||
return;
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
QString params = QUrl::fromPercentEncoding( event->content->readAll() );
|
QString params = QUrl::fromPercentEncoding( event->content->readAll() );
|
||||||
params = params.mid( params.indexOf( '?' ) );
|
params = params.mid( params.indexOf( '?' ) );
|
||||||
|
Reference in New Issue
Block a user