summaryrefslogtreecommitdiffstats
path: root/src/network/access/qftp_p.h
diff options
context:
space:
mode:
authorJesus Fernandez <jesus.fernandez@qt.io>2019-03-19 11:41:53 +0100
committerJesus Fernandez <Jesus.Fernandez@qt.io>2019-04-29 14:10:34 +0000
commit8e82e536cdbf2b6c36a7eabd6fba1a85613973f8 (patch)
treead59e5b37e6ce5bd10060cee2942f64502333561 /src/network/access/qftp_p.h
parent9a6a84731131b205f74b10f866ae212e0895bd4a (diff)
FTP: Workaround for servers without HELP command support
Ignores errors produced by the HELP command. It will continue executing the commands sent to QFtp when a server does not have a HELP command implemented. Commands SIZE, MDTM, and PWD are not going to be used if the HELP command failed. [ChangeLog][QtNetwork][QNetworkAccessManager] Don't fail when FTP does not implement the HELP command. Task-number: QTBUG-69477 Change-Id: I0ebd51b134535730c6bef83de1abf1a427b8d2ce Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Diffstat (limited to 'src/network/access/qftp_p.h')
-rw-r--r--src/network/access/qftp_p.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/access/qftp_p.h b/src/network/access/qftp_p.h
index 91d78d1351..a55429933b 100644
--- a/src/network/access/qftp_p.h
+++ b/src/network/access/qftp_p.h
@@ -157,6 +157,9 @@ Q_SIGNALS:
void commandFinished(int, bool);
void done(bool);
+protected:
+ void clearError();
+
private:
Q_DISABLE_COPY_MOVE(QFtp)
Q_DECLARE_PRIVATE(QFtp)