Skip to content

Commit

Permalink
disambiguation using cast to ensure using cctype instead of locale.
Browse files Browse the repository at this point in the history
  • Loading branch information
anr2me committed Aug 28, 2023
1 parent e136901 commit 66dfb18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Core/HLE/sceHttp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ int HTTPTemplate::addRequestHeader(const char* name, const char* value, u32 mode
// Handle User-Agent separately, since PSP Browser seems to add "User-Agent" header manually
if (mode == SCE_HTTP_HEADER_OVERWRITE) {
std::string s = name;
std::transform(s.begin(), s.end(), s.begin(), std::tolower);
std::transform(s.begin(), s.end(), s.begin(), static_cast<int(*)(int)>(std::tolower));
if (s == "user-agent")
setUserAgent(value);
}
Expand Down

0 comments on commit 66dfb18

Please sign in to comment.