From 4be9b33741b71925adddf7ee184b3babf2170347 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 26 Jan 2021 03:19:17 +0100 Subject: mod_http_file_share: Let's write another XEP-0363 implementation This variant is meant to improve upon mod_http_upload in some ways: * Handle files much of arbitrary size efficiently * Allow GET and PUT URLs to be different * Remember Content-Type sent by client * Avoid dependency on mod_http_files * Built-in way to delegate storage to another httpd --- spec/scansion/http_upload.scs | 26 ++++++++++++++++++++++++++ spec/scansion/prosody.cfg.lua | 2 ++ 2 files changed, 28 insertions(+) create mode 100644 spec/scansion/http_upload.scs (limited to 'spec/scansion') diff --git a/spec/scansion/http_upload.scs b/spec/scansion/http_upload.scs new file mode 100644 index 00000000..a683483e --- /dev/null +++ b/spec/scansion/http_upload.scs @@ -0,0 +1,26 @@ +[Client] Romeo + password: password + jid: filesharingenthusiast@localhost/krxLaE3s + +----- + +Romeo connects + +Romeo sends: + + + + +Romeo receives: + + + + +
+
+
+
+ +Romeo disconnects + +# recording ended on 2021-01-27T22:10:46Z diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua index d147db54..ca28b6ba 100644 --- a/spec/scansion/prosody.cfg.lua +++ b/spec/scansion/prosody.cfg.lua @@ -131,3 +131,5 @@ Component "conference.localhost" "muc" Component "pubsub.localhost" "pubsub" storage = "memory" + +Component "upload.localhost" "http_file_share" -- cgit v1.2.3