mirror of
https://github.com/SantaSpeen/BeamMP-Server.git
synced 2026-04-03 15:26:01 +00:00
fix MP.HttpGET (was not passing contentType)
This commit is contained in:
@@ -134,7 +134,7 @@ std::string GenericRequest(http::verb verb, const std::string& host, int port, c
|
||||
}
|
||||
|
||||
std::string Http::GET(const std::string& host, int port, const std::string& target, unsigned int* status) {
|
||||
return GenericRequest(http::verb::get, host, port, target, {}, {}, {}, status);
|
||||
return GenericRequest(http::verb::get, host, port, target, {}, {}, content_type, status);
|
||||
}
|
||||
|
||||
std::string Http::POST(const std::string& host, int port, const std::string& target, const std::unordered_map<std::string, std::string>& fields, const std::string& body, const std::string& ContentType, unsigned int* status) {
|
||||
|
||||
Reference in New Issue
Block a user