1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-25 21:55:25 +02:00

Make remote media exclusively use GET for hash set (#15885)

This commit is contained in:
sfan5
2025-03-19 22:06:34 +01:00
committed by GitHub
parent a9a3b05cc3
commit 1f14b7cb1b
2 changed files with 21 additions and 36 deletions

View File

@@ -119,6 +119,8 @@ protected:
bool loadMedia(Client *client, const std::string &data,
const std::string &name) override;
static std::string makeReferer(Client *client);
private:
struct FileStatus {
bool received;
@@ -142,7 +144,6 @@ private:
static void deSerializeHashSet(const std::string &data,
std::set<std::string> &result);
std::string serializeRequiredHashSet();
// Maps filename to file status
std::map<std::string, FileStatus*> m_files;