summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/curl.c4
-rw-r--r--lib/dbdict.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/lib/curl.c b/lib/curl.c
index d87ceba..93cb4a3 100644
--- a/lib/curl.c
+++ b/lib/curl.c
@@ -120,6 +120,7 @@ int cCurl::init(const char* httpproxy)
curl_easy_setopt(handle, CURLOPT_TIMEOUT, 30); // Set timeout
curl_easy_setopt(handle, CURLOPT_NOBODY, 0); //
curl_easy_setopt(handle, CURLOPT_USERAGENT, CURL_USERAGENT); // Some servers don't like requests
+ curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "");
return success;
}
@@ -437,7 +438,8 @@ int cCurl::downloadFile(const char* url, int& size, MemoryStruct* data, int time
curl_easy_setopt(handle, CURLOPT_TIMEOUT, timeout); // Set timeout
curl_easy_setopt(handle, CURLOPT_NOBODY, data->headerOnly ? 1 : 0); //
curl_easy_setopt(handle, CURLOPT_USERAGENT, userAgent); // Some servers don't like requests without a user-agent field
- curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); //
+// curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "gzip"); //
+ curl_easy_setopt(handle, CURLOPT_ACCEPT_ENCODING, "");
if (headerlist)
curl_easy_setopt(handle, CURLOPT_HTTPHEADER, headerlist);
diff --git a/lib/dbdict.h b/lib/dbdict.h
index 94aab67..3b0398a 100644
--- a/lib/dbdict.h
+++ b/lib/dbdict.h
@@ -308,6 +308,8 @@ class cDbTableDef : public cDbService
}
const char* getName() { return name; }
+
+ int hasName(const char* n) { return strcasecmp(name, n) == 0; }
int fieldCount() { return dfields.size(); }
cDbFieldDef* getField(int id) { return _dfields[id]; }