summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9ff48d0)
We can append /upload ourselves.
memzero(u, sizeof(Uploader));
u->input = -1;
memzero(u, sizeof(Uploader));
u->input = -1;
+ if (!startswith(url, "http://") && !startswith(url, "https://"))
+ url = strappenda("https://", url);
+
+ u->url = strappend(url, "/upload");
+ if (!u->url)
+ return log_oom();
+
u->state_file = state_file;
r = sd_event_default(&u->events);
u->state_file = state_file;
r = sd_event_default(&u->events);
free(u->last_cursor);
free(u->current_cursor);
free(u->last_cursor);
free(u->current_cursor);
u->input_event = sd_event_source_unref(u->input_event);
close_fd_input(u);
u->input_event = sd_event_source_unref(u->input_event);
close_fd_input(u);
sd_event *events;
sd_event_source *sigint_event, *sigterm_event;
sd_event *events;
sd_event_source *sigint_event, *sigterm_event;
CURL *easy;
bool uploading;
char error[CURL_ERROR_SIZE];
CURL *easy;
bool uploading;
char error[CURL_ERROR_SIZE];