1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-07-31 11:20:22 +02:00

Return 404 if content is null.

This commit is contained in:
Alejandro Wainzinger
2011-08-30 22:07:53 -07:00
parent 2bedc3bdd0
commit 14e6a7fce4

View File

@@ -66,7 +66,11 @@ Api_v1::auth_2( QxtWebRequestEvent* event, QString arg )
{
qDebug() << "AUTH_2 HTTP" << event->url.toString() << arg;
if( event->content.isNull() )
{
qDebug() << "Null content";
send404( event );
return;
}
QString params = QUrl::fromPercentEncoding( event->content->readAll() );
params = params.mid( params.indexOf( '?' ) );