[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdelibs/kioslave/http
From:       Thiago Macieira <thiago () kde ! org>
Date:       2010-06-22 20:12:15
Message-ID: 20100622201215.D6059AC8DE () svn ! kde ! org
[Download RAW message or body]

SVN commit 1141456 by thiago:

Do not tell the user an HTTP resource is not found when we get a 403

 M  +3 -0      http.cpp  


--- trunk/KDE/kdelibs/kioslave/http/http.cpp #1141455:1141456
@@ -2841,6 +2841,9 @@
         // Any other client errors
         // Tell that we will only get an error page here.
         if (!sendErrorPageNotification()) {
+            if (m_request.responseCode == 403)
+                error(ERR_ACCESS_DENIED, m_request.url.url());
+            else
             error(ERR_DOES_NOT_EXIST, m_request.url.url());
             return false;
         }
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic