mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kioslave: map 416 and 501 HTTP status to KIO error codes
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
ecd08e8f97
commit
72fc471eb7
1 changed files with 4 additions and 1 deletions
|
@ -215,10 +215,14 @@ static inline KIO::Error HTTPToKIOError(const long httpcode)
|
|||
case 504: {
|
||||
return KIO::ERR_SERVER_TIMEOUT;
|
||||
}
|
||||
case 416: {
|
||||
return KIO::ERR_CANNOT_RESUME;
|
||||
}
|
||||
case 500: {
|
||||
return KIO::ERR_INTERNAL_SERVER;
|
||||
}
|
||||
case 404:
|
||||
case 501:
|
||||
case 503: {
|
||||
return KIO::ERR_SERVICE_NOT_AVAILABLE;
|
||||
}
|
||||
|
@ -1242,7 +1246,6 @@ QList<KIO::UDSEntry> CurlProtocol::udsEntries()
|
|||
const QByteArray ftpmonth = lineparts.at(5);
|
||||
const QByteArray ftpday = lineparts.at(6);
|
||||
const QByteArray ftphouroryear = lineparts.at(7);
|
||||
|
||||
lineparts = lineparts.mid(8);
|
||||
|
||||
// and finally the filepath parts
|
||||
|
|
Loading…
Add table
Reference in a new issue