diff options
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -68,7 +68,7 @@ int srv_open(char *basedir, int auto_upgrade) | |||
| 68 | if (host == NULL || prefix == NULL) | 68 | if (host == NULL || prefix == NULL) |
| 69 | error = xs_str_new("ERROR: cannot get server data"); | 69 | error = xs_str_new("ERROR: cannot get server data"); |
| 70 | else { | 70 | else { |
| 71 | srv_baseurl = xs_fmt("https://%s%s", host, prefix); | 71 | srv_baseurl = xs_fmt("http://%s%s", host, prefix); |
| 72 | 72 | ||
| 73 | dbglevel = (int) xs_number_get(dbglvl); | 73 | dbglevel = (int) xs_number_get(dbglvl); |
| 74 | 74 | ||
| @@ -1990,7 +1990,8 @@ xs_list *inbox_list(void) | |||
| 1990 | 1990 | ||
| 1991 | xs_str *_instance_block_fn(const char *instance) | 1991 | xs_str *_instance_block_fn(const char *instance) |
| 1992 | { | 1992 | { |
| 1993 | xs *s1 = xs_replace(instance, "https:/" "/", ""); | 1993 | xs *s = xs_replace(instance, "http:/" "/", ""); |
| 1994 | xs *s1 = xs_replace(s, "https:/" "/", ""); | ||
| 1994 | xs *l = xs_split(s1, "/"); | 1995 | xs *l = xs_split(s1, "/"); |
| 1995 | char *p = xs_list_get(l, 0); | 1996 | char *p = xs_list_get(l, 0); |
| 1996 | xs *md5 = xs_md5_hex(p, strlen(p)); | 1997 | xs *md5 = xs_md5_hex(p, strlen(p)); |