X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/8707edd9e4684ed68856cd8eeff15ebd1e8c88ea..4460551841d909d3ee9c1de00156ed3cdf8b1665:/methods/https.cc diff --git a/methods/https.cc b/methods/https.cc index fc439bef8..92f786d17 100644 --- a/methods/https.cc +++ b/methods/https.cc @@ -13,7 +13,6 @@ #include #include -#include #include #include #include @@ -389,7 +388,7 @@ bool HttpsMethod::Fetch(FetchItem *Itm) std::string Buf; strprintf(Buf, "Range: bytes=%lli-", (long long) SBuf.st_size); headers = curl_slist_append(headers, Buf.c_str()); - strprintf(Buf, "If-Range: %s", TimeRFC1123(SBuf.st_mtime).c_str()); + strprintf(Buf, "If-Range: %s", TimeRFC1123(SBuf.st_mtime, false).c_str()); headers = curl_slist_append(headers, Buf.c_str()); } else if(Itm->LastModified > 0) @@ -528,11 +527,6 @@ std::unique_ptr HttpsMethod::CreateServerState(URI const &uri)/*{{{ int main() { - setlocale(LC_ALL, ""); - - HttpsMethod Mth; - curl_global_init(CURL_GLOBAL_SSL) ; - - return Mth.Run(); + return HttpsMethod().Run(); }