summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/ubrowser/httpfactory.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/noncore/net/ubrowser/httpfactory.cpp b/noncore/net/ubrowser/httpfactory.cpp
index 4ace4cb..b37e9f9 100644
--- a/noncore/net/ubrowser/httpfactory.cpp
+++ b/noncore/net/ubrowser/httpfactory.cpp
@@ -224,5 +224,5 @@ const QByteArray HttpFactory::processResponse( int sockfd, bool &isText ) const
isText = true;
printf( "HttpFactory::processResponse: content type text\n" );
- if( currentLine.contains( "html", false ) )
+ if( currentLine.contains( "html", false ) >= 1)
{
browser->setTextFormat(Qt::RichText);
@@ -244,4 +244,10 @@ const QByteArray HttpFactory::processResponse( int sockfd, bool &isText ) const
}
+ if( currentLine.contains( "404", false ) >= 1 )
+ {
+ printf( "HttpFactory::processResponse: 404 error\n" );
+ return 0;
+ }
+
currentLine = "";
printf("HttpFactory::processResponse: reseting currentLine: %s\n", currentLine.latin1() );