summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Williams <andy@andywilliams.me>2016-11-03 23:07:17 +0000
committerAndy Williams <andy@andywilliams.me>2016-11-03 23:07:17 +0000
commitda81873629ba60c0a57129f3b32f6da7f3613205 (patch)
tree7edfb1bb9200abfa184522cd0ae085056ee8b916
parent6e58ecff42ecbd010f1ec34e84fa4cf91e628016 (diff)
refactor to put the hostname in a header
-rw-r--r--src/lib/extra.c2
-rw-r--r--src/lib/extra_private.h2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/lib/extra.c b/src/lib/extra.c
index 504f75d..79185e3 100644
--- a/src/lib/extra.c
+++ b/src/lib/extra.c
@@ -106,7 +106,7 @@ extra_library_call(void)
106{ 106{
107 Ecore_Con_Url *url; 107 Ecore_Con_Url *url;
108 108
109 url = ecore_con_url_custom_new("http://ajwilliams.pythonanywhere.com/v1/themes/", "GET"); 109 url = ecore_con_url_custom_new("http://" HOSTNAME "/v1/themes/", "GET");
110 ecore_con_url_additional_header_add(url, "Accept", "text/csv"); 110 ecore_con_url_additional_header_add(url, "Accept", "text/csv");
111 111
112 ecore_event_handler_add(ECORE_CON_EVENT_URL_DATA, _url_data_cb, NULL); 112 ecore_event_handler_add(ECORE_CON_EVENT_URL_DATA, _url_data_cb, NULL);
diff --git a/src/lib/extra_private.h b/src/lib/extra_private.h
index 51b980b..77c81bd 100644
--- a/src/lib/extra_private.h
+++ b/src/lib/extra_private.h
@@ -1,6 +1,8 @@
1#ifndef EXTRA_PRIVATE_H 1#ifndef EXTRA_PRIVATE_H
2# define EXTRA_PRIVATE_H 2# define EXTRA_PRIVATE_H
3 3
4#define HOSTNAME "ajwilliams.pythonanywhere.com"
5
4extern int _extra_lib_log_dom; 6extern int _extra_lib_log_dom;
5 7
6#ifdef ERR 8#ifdef ERR