File: 0005-Use-OPDS-stream-via-HTTPs.patch

package info (click to toggle)
kiwix 2.0.5-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,948 kB
  • sloc: javascript: 8,829; cpp: 4,363; xml: 50; python: 22; makefile: 4
file content (30 lines) | stat: -rw-r--r-- 927 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From: Emmanuel Engelhart <kelson@kiwix.org>
Date: Thu, 4 Feb 2021 10:43:24 +0100
Subject: Use OPDS stream via HTTPs

---
 src/opdsrequestmanager.cpp | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/opdsrequestmanager.cpp b/src/opdsrequestmanager.cpp
index 5f632f7..9947e7b 100644
--- a/src/opdsrequestmanager.cpp
+++ b/src/opdsrequestmanager.cpp
@@ -8,7 +8,7 @@ OpdsRequestManager::OpdsRequestManager()
 }
 
 #define CATALOG_HOST "library.kiwix.org"
-#define CATALOG_PORT 80
+#define CATALOG_PORT 443
 void OpdsRequestManager::doUpdate(const QString& currentLanguage, const QString& categoryFilter)
 {
     QUrlQuery query;
@@ -32,7 +32,7 @@ void OpdsRequestManager::doUpdate(const QString& currentLanguage, const QString&
 
 
     QUrl url;
-    url.setScheme("http");
+    url.setScheme("https");
     url.setHost(CATALOG_HOST);
     url.setPort(CATALOG_PORT);
     url.setPath("/catalog/search");