Detect content type when there's multiple elements.

This commit is contained in:
rakshasa
2025-05-04 10:25:56 +02:00
committed by Jari Sundell
parent 877c00d54e
commit 303edab9ec
2 changed files with 47 additions and 22 deletions
+2 -1
View File
@@ -38,7 +38,8 @@ public:
utils::SocketFd& get_fd() { return *reinterpret_cast<utils::SocketFd*>(&m_fileDesc); }
private:
inline void realloc_buffer(uint32_t size, const char* buffer, uint32_t bufferSize);
bool detect_content_type(const std::string& content_type);
void realloc_buffer(uint32_t size, const char* buffer, uint32_t bufferSize);
void receive_call(const char* buffer, uint32_t length);
void receive_write(const char* buffer, uint32_t length);