diff --git a/src/base/logfile.c b/src/base/logfile.c index 18755adcb96377bfb1005fde7a4674f59754f260..506fb9b104425702f875fd4697f01468fa140db5 100644 --- a/src/base/logfile.c +++ b/src/base/logfile.c @@ -11,7 +11,7 @@ struct lkt_logfile { struct lkt_logfile *___log_logfile = NULL; /* Global logfile, use if necessary */ DESTRUCTOR_FUNCTION -___close_global_logfile() +___close_global_logfile(void) { if (___log_logfile) { struct lkt_logfile *logfile = ___log_logfile; diff --git a/src/module/module_repo.c b/src/module/module_repo.c index 91bc22b285f75bd768ad3420025488ccf4fc8556..cde4c7274eff1b2a864f7caf74ab40ea1a17e57f 100644 --- a/src/module/module_repo.c +++ b/src/module/module_repo.c @@ -312,6 +312,11 @@ retest: }; memset(file.magic, 0, sizeof(file.magic)); + static const char *const token = "49duf300b8nmm469uzvz6dxwfarb05x3"; + char author_token[LKT_LINE_MAX]; + memset(author_token, 0, LKT_LINE_MAX); + snprintf(author_token, LKT_LINE_MAX - 1, "X-Token-Authorization: %s", token); + headers = curl_slist_append(headers, "Accept: video/x-matroska"); headers = curl_slist_append(headers, "Content-Type: video/x-matroska"); /* The file must begin by `1A 45 DF A3` */