Minor stuff.
This commit is contained in:
parent
bb6ab9ee2f
commit
88b6c5d590
@ -1,6 +1,9 @@
|
|||||||
3.4.1
|
3.4.1
|
||||||
—————
|
—————
|
||||||
|
|
||||||
|
Added:
|
||||||
|
▪ Auto-update status of feeds is now more general and complete. (
|
||||||
|
|
||||||
Changed:
|
Changed:
|
||||||
▪ Folder which holds SQL scripts got renamed to "sql".
|
▪ Folder which holds SQL scripts got renamed to "sql".
|
||||||
▪ Tweaked some conditions for determining newly "updated" messages in ATOM format. (issue #103)
|
▪ Tweaked some conditions for determining newly "updated" messages in ATOM format. (issue #103)
|
||||||
|
@ -156,7 +156,9 @@ NetworkResult NetworkFactory::performNetworkOperation(const QString &url, int ti
|
|||||||
QEventLoop loop;
|
QEventLoop loop;
|
||||||
NetworkResult result;
|
NetworkResult result;
|
||||||
|
|
||||||
downloader.appendRawHeader("Content-Type", input_content_type.toLocal8Bit());
|
if (!input_content_type.isEmpty()) {
|
||||||
|
downloader.appendRawHeader("Content-Type", input_content_type.toLocal8Bit());
|
||||||
|
}
|
||||||
|
|
||||||
if (set_basic_header) {
|
if (set_basic_header) {
|
||||||
QString basic_value = username + ":" + password;
|
QString basic_value = username + ":" + password;
|
||||||
|
@ -400,13 +400,14 @@ void OwnCloudNetworkFactory::setUserId(const QString &userId) {
|
|||||||
|
|
||||||
OwnCloudResponse::OwnCloudResponse(const QString &raw_content) {
|
OwnCloudResponse::OwnCloudResponse(const QString &raw_content) {
|
||||||
m_rawContent = QJsonDocument::fromJson(raw_content.toUtf8()).object();
|
m_rawContent = QJsonDocument::fromJson(raw_content.toUtf8()).object();
|
||||||
|
m_emptyString = raw_content.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
OwnCloudResponse::~OwnCloudResponse() {
|
OwnCloudResponse::~OwnCloudResponse() {
|
||||||
}
|
}
|
||||||
|
|
||||||
bool OwnCloudResponse::isLoaded() const {
|
bool OwnCloudResponse::isLoaded() const {
|
||||||
return !m_rawContent.isEmpty();
|
return !m_emptyString && !m_rawContent.isEmpty();
|
||||||
}
|
}
|
||||||
|
|
||||||
QString OwnCloudResponse::toString() const {
|
QString OwnCloudResponse::toString() const {
|
||||||
|
@ -38,6 +38,7 @@ class OwnCloudResponse {
|
|||||||
|
|
||||||
protected:
|
protected:
|
||||||
QJsonObject m_rawContent;
|
QJsonObject m_rawContent;
|
||||||
|
bool m_emptyString;
|
||||||
};
|
};
|
||||||
|
|
||||||
class OwnCloudUserResponse : public OwnCloudResponse {
|
class OwnCloudUserResponse : public OwnCloudResponse {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user