equal
deleted
inserted
replaced
1 local async = require "util.async"; |
1 local async = require "util.async"; |
2 local promise = require "util.promise"; |
2 local promise = require "util.promise"; |
3 local http = require "net.http"; |
3 local http = require "net.http"; |
4 local st = require "util.stanza"; |
4 local st = require "util.stanza"; |
5 |
5 |
6 local xmlns_metadata = "https://prosody.im/protocol/media-metadata#0" |
6 local xmlns_metadata = "xmpp:prosody.im/protocol/media-metadata#0" |
7 |
7 |
8 local fetch_headers = { |
8 local fetch_headers = { |
9 bytes = "content-length"; |
9 bytes = "content-length"; |
10 type = "content-type"; |
10 type = "content-type"; |
11 etag = "etag"; |
11 etag = "etag"; |