"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "xbmc/network/httprequesthandler/HTTPRequestHandlerUtils.cpp" between
xbmc-18.7.1-Leia.tar.gz and xbmc-18.8-Leia.tar.gz

About: XBMC is a software media player and entertainment hub for digital media that plays almost all popular audio and video formats around (new name "Kodi").

HTTPRequestHandlerUtils.cpp  (xbmc-18.7.1-Leia):HTTPRequestHandlerUtils.cpp  (xbmc-18.8-Leia)
skipping to change at line 64 skipping to change at line 64
bool HTTPRequestHandlerUtils::GetRequestedRanges(struct MHD_Connection *connecti on, uint64_t totalLength, CHttpRanges &ranges) bool HTTPRequestHandlerUtils::GetRequestedRanges(struct MHD_Connection *connecti on, uint64_t totalLength, CHttpRanges &ranges)
{ {
ranges.Clear(); ranges.Clear();
if (connection == nullptr) if (connection == nullptr)
return false; return false;
return ranges.Parse(GetRequestHeaderValue(connection, MHD_HEADER_KIND, MHD_HTT P_HEADER_RANGE), totalLength); return ranges.Parse(GetRequestHeaderValue(connection, MHD_HEADER_KIND, MHD_HTT P_HEADER_RANGE), totalLength);
} }
int HTTPRequestHandlerUtils::FillArgumentMap(void *cls, enum MHD_ValueKind kind, const char *key, const char *value) MHD_RESULT HTTPRequestHandlerUtils::FillArgumentMap(void *cls, enum MHD_ValueKin d kind, const char *key, const char *value)
{ {
if (cls == nullptr || key == nullptr) if (cls == nullptr || key == nullptr)
return MHD_NO; return MHD_NO;
std::map<std::string, std::string> *arguments = reinterpret_cast<std::map<std: :string, std::string>*>(cls); std::map<std::string, std::string> *arguments = reinterpret_cast<std::map<std: :string, std::string>*>(cls);
arguments->insert(std::make_pair(key, value != nullptr ? value : "")); arguments->insert(std::make_pair(key, value != nullptr ? value : ""));
return MHD_YES; return MHD_YES;
} }
int HTTPRequestHandlerUtils::FillArgumentMultiMap(void *cls, enum MHD_ValueKind kind, const char *key, const char *value) MHD_RESULT HTTPRequestHandlerUtils::FillArgumentMultiMap(void *cls, enum MHD_Val ueKind kind, const char *key, const char *value)
{ {
if (cls == nullptr || key == nullptr) if (cls == nullptr || key == nullptr)
return MHD_NO; return MHD_NO;
std::multimap<std::string, std::string> *arguments = reinterpret_cast<std::mul timap<std::string, std::string>*>(cls); std::multimap<std::string, std::string> *arguments = reinterpret_cast<std::mul timap<std::string, std::string>*>(cls);
arguments->insert(std::make_pair(key, value != nullptr ? value : "")); arguments->insert(std::make_pair(key, value != nullptr ? value : ""));
return MHD_YES; return MHD_YES;
} }
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)