[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: KDE/kdelibs/kioslave/http
From: Aaron J. Seigo <aseigo () kde ! org>
Date: 2010-09-07 19:36:40
Message-ID: 20100907193640.6362FAC769 () svn ! kde ! org
[Download RAW message or body]
SVN commit 1172676 by aseigo:
this unbreaks kio_http for usage in, e.g., the Plasma microblogging data engine.
CCMAIL:ahartmetz@gmail.com
M +2 -2 http.cpp
--- trunk/KDE/kdelibs/kioslave/http/http.cpp #1172675:1172676
@@ -303,7 +303,7 @@
static bool isAuthenticationRequired(int responseCode)
{
- return responseCode == 401 || responseCode == 407;
+ return (responseCode == 401) || (responseCode == 407);
}
#define NO_SIZE ((KIO::filesize_t) -1)
@@ -2831,7 +2831,7 @@
} else if (m_request.responseCode == 426) {
// Upgrade Required
upgradeRequired = true;
- } else if (m_request.responseCode >= 400 && m_request.responseCode <= 499) {
+ } else if (!isAuthenticationRequired(m_request.responseCode) && \
m_request.responseCode >= 400 && m_request.responseCode <= 499) { // Any other \
client errors // Tell that we will only get an error page here.
if (!sendErrorPageNotification()) {
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic