From e217ed0b798706fd11d19f1ffc0bdbbb95d55f53 Mon Sep 17 00:00:00 2001 From: Maximilian Wuttke Date: Wed, 10 Mar 2021 17:26:38 +0100 Subject: Update to the newest version of XEP 0363 (HTTP Upload) Main changes: 1. Attributes instead of tags 2. Read the optional
tags and send them in the HTTP PUT header: * Authorization * Cookie * Expires Co-authored-by: Martin Dosch --- src/tools/http_upload.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/tools/http_upload.h') diff --git a/src/tools/http_upload.h b/src/tools/http_upload.h index 4e95d4d8..06145a43 100644 --- a/src/tools/http_upload.h +++ b/src/tools/http_upload.h @@ -59,6 +59,11 @@ typedef struct http_upload_t ProfWin* window; pthread_t worker; int cancel; + // Additional headers + // (NULL if they shouldn't be send in the PUT) + char* authorization; + char* cookie; + char* expires; } HTTPUpload; void* http_file_put(void* userdata); -- cgit 1.4.1-2-gfad0