diff --git a/pvr.plutotv/addon.xml.in b/pvr.plutotv/addon.xml.in index f221cf5..ca51bfd 100644 --- a/pvr.plutotv/addon.xml.in +++ b/pvr.plutotv/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.plutotv/changelog.txt b/pvr.plutotv/changelog.txt index 8789eea..83973da 100644 --- a/pvr.plutotv/changelog.txt +++ b/pvr.plutotv/changelog.txt @@ -1,3 +1,6 @@ +v22.3.2 +- Fix HTTP request timeouts whith newer CURL versions + v22.3.1 - Fix EPG refresh not working (due to expired JWT) diff --git a/src/Curl.cpp b/src/Curl.cpp index 1ea8114..77c9c4b 100644 --- a/src/Curl.cpp +++ b/src/Curl.cpp @@ -163,11 +163,10 @@ kodi::vfs::CFile* Curl::PrepareRequest(const std::string& action, return nullptr; } + file->CURLAddOption(ADDON_CURL_OPTION_PROTOCOL, "http-version", "1.1"); file->CURLAddOption(ADDON_CURL_OPTION_PROTOCOL, "redirect-limit", "0"); file->CURLAddOption(ADDON_CURL_OPTION_PROTOCOL, "customrequest", action); - file->CURLAddOption(ADDON_CURL_OPTION_HEADER, "acceptencoding", "gzip"); - if (!postData.empty()) { const std::string base64 = Base64Encode(postData, false);