mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-19 23:39:42 +01:00
Return 404 if content is null.
This commit is contained in:
parent
2bedc3bdd0
commit
14e6a7fce4
@ -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( '?' ) );
|
||||
|
Loading…
x
Reference in New Issue
Block a user