Skip to content

Instantly share code, notes, and snippets.

View lorenz's full-sized avatar

Lorenz Brun lorenz

View GitHub Profile
@lorenz
lorenz / 00_http_upload.patch
Created September 5, 2017 18:52
Prosody HTTP upload fix
diff --git a/mod_http_upload/mod_http_upload.lua b/mod_http_upload/mod_http_upload.lua
--- a/mod_http_upload/mod_http_upload.lua
+++ b/mod_http_upload/mod_http_upload.lua
@@ -171,8 +171,14 @@
slot_url.path.is_directory = false;
slot_url.path = url.build_path(slot_url.path);
slot_url = url.build(slot_url);
- reply:tag("get"):text(slot_url):up();
- reply:tag("put"):text(slot_url):up();
+ if xmlns == legacy_namespace then