mirror of
https://github.com/yhirose/cpp-httplib.git
synced 2026-10-17 10:59:39 +00:00
Fix #1977
This commit is contained in:
1 parent
26208363ee
commit
7bd316f3d0
1 file changed
+1
-1
@@ -2259,7 +2259,7 @@ make_basic_authentication_header(const std::string &username,
|
||||
namespace detail {
|
||||
|
||||
#if defined(_WIN32)
|
||||
std::wstring u8string_to_wstring(const char *s) {
|
||||
inline std::wstring u8string_to_wstring(const char *s) {
|
||||
std::wstring ws;
|
||||
auto len = static_cast<int>(strlen(s));
|
||||
auto wlen = ::MultiByteToWideChar(CP_UTF8, 0, s, len, nullptr, 0);
|
||||
|
||||
Reference in new issue
Block a user