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