summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-22 15:41:31 +0100
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-03-22 15:41:31 +0100
commit936b7edf00c134dfe7b68c2884fe7eb420deb0e2 (patch)
tree909f261796d84e552f634dc99fdb7b3d77f745f3
parent080f5c19972af35db7c6f54e420b7829c057e73b (diff)
extra: roll to https
its 2020, lets encrypt that.
-rw-r--r--src/lib/extra.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/lib/extra.c b/src/lib/extra.c
index f0f0294..85ad0da 100644
--- a/src/lib/extra.c
+++ b/src/lib/extra.c
@@ -301,11 +301,11 @@ extra_sync(Extra_Progress *progress)
301 301
302 req->progress = progress; 302 req->progress = progress;
303 303
304 req->themes = ecore_con_url_custom_new("http://" HOSTNAME "/v1/themes/", "GET"); 304 req->themes = ecore_con_url_custom_new("https://" HOSTNAME "/v1/themes/", "GET");
305 ecore_con_url_additional_header_add(req->themes, "Accept", "text/json"); 305 ecore_con_url_additional_header_add(req->themes, "Accept", "text/json");
306 ecore_con_url_data_set(req->themes, eina_strbuf_new()); 306 ecore_con_url_data_set(req->themes, eina_strbuf_new());
307 307
308 req->backgrounds = ecore_con_url_custom_new("http://" HOSTNAME "/v1/backgrounds/", "GET"); 308 req->backgrounds = ecore_con_url_custom_new("https://" HOSTNAME "/v1/backgrounds/", "GET");
309 ecore_con_url_additional_header_add(req->backgrounds, "Accept", "text/json"); 309 ecore_con_url_additional_header_add(req->backgrounds, "Accept", "text/json");
310 ecore_con_url_data_set(req->backgrounds, eina_strbuf_new()); 310 ecore_con_url_data_set(req->backgrounds, eina_strbuf_new());
311 311
@@ -385,7 +385,7 @@ _extra_preview_path_pair_gen(const char *resource, Extra_Base_Object *obj)
385 remote = eina_strbuf_new(); 385 remote = eina_strbuf_new();
386 local = eina_strbuf_new(); 386 local = eina_strbuf_new();
387 387
388 eina_strbuf_append_printf(remote, "http://" HOSTNAME "/%s/preview/%s.png", resource, obj->id); 388 eina_strbuf_append_printf(remote, "https://" HOSTNAME "/%s/preview/%s.png", resource, obj->id);
389 eina_strbuf_append_printf(local, "%s/%s/%s-%s-%d.png", efreet_cache_home_get(), PACKAGE_NAME, resource, obj->id, obj->version); 389 eina_strbuf_append_printf(local, "%s/%s/%s-%s-%d.png", efreet_cache_home_get(), PACKAGE_NAME, resource, obj->id, obj->version);
390 390
391 result->local = eina_strbuf_string_steal(local); 391 result->local = eina_strbuf_string_steal(local);
@@ -470,7 +470,7 @@ extra_theme_download_url_get(Extra_Theme *theme)
470 EINA_SAFETY_ON_NULL_RETURN_VAL(theme, NULL); 470 EINA_SAFETY_ON_NULL_RETURN_VAL(theme, NULL);
471 471
472 buf = eina_strbuf_new(); 472 buf = eina_strbuf_new();
473 eina_strbuf_append(buf, "http://" HOSTNAME "/themes/"); 473 eina_strbuf_append(buf, "https://" HOSTNAME "/themes/");
474 eina_strbuf_append_printf(buf, "%s-%d.edj", theme->obj.id, theme->obj.version); 474 eina_strbuf_append_printf(buf, "%s-%d.edj", theme->obj.id, theme->obj.version);
475 475
476 url = eina_strbuf_string_steal(buf); 476 url = eina_strbuf_string_steal(buf);
@@ -664,7 +664,7 @@ extra_background_download_url_get(Extra_Background *background)
664 EINA_SAFETY_ON_NULL_RETURN_VAL(background, NULL); 664 EINA_SAFETY_ON_NULL_RETURN_VAL(background, NULL);
665 665
666 buf = eina_strbuf_new(); 666 buf = eina_strbuf_new();
667 eina_strbuf_append(buf, "http://" HOSTNAME "/backgrounds/"); 667 eina_strbuf_append(buf, "https://" HOSTNAME "/backgrounds/");
668 eina_strbuf_append_printf(buf, "%s-%d.edj", background->obj.id, background->obj.version); 668 eina_strbuf_append_printf(buf, "%s-%d.edj", background->obj.id, background->obj.version);
669 669
670 url = eina_strbuf_string_steal(buf); 670 url = eina_strbuf_string_steal(buf);