summaryrefslogtreecommitdiff
path: root/extra/geoclue2/https.patch
blob: e4eb4e5c9716a3d856909c5456f1b334272fd28e (plain)
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
From 12804f7e2e569f7f3a0879d740a62b3e34ae6e36 Mon Sep 17 00:00:00 2001
From: Stefan Bernhardsgrütter <s.bernhardsgruetter@gmail.com>
Date: Thu, 02 Jan 2014 13:01:25 +0000
Subject: ipclient: Use HTTPS to connect to geoip.fedoraproject.org

The actual resource is behind HTTPS so using HTTP leads to
redirections and thefore redundant TCP packets.
---
(limited to 'src/gclue-ipclient.c')

diff --git a/src/gclue-ipclient.c b/src/gclue-ipclient.c
index 492aa83..6f681f8 100644
--- a/src/gclue-ipclient.c
+++ b/src/gclue-ipclient.c
@@ -31,7 +31,7 @@
 #include "geoip-server/geoip-server.h"
 #include "geocode-location.h"
 
-#define GEOIP_SERVER "http://geoip.fedoraproject.org/city"
+#define GEOIP_SERVER "https://geoip.fedoraproject.org/city"
 
 /**
  * SECTION:gclue-ipclient
--
cgit v0.9.0.2-2-gbebe