You've already forked cpp-httplib
Fix #1848
This commit is contained in:
@ -2526,12 +2526,8 @@ inline std::string base64_encode(const std::string &in) {
|
||||
}
|
||||
|
||||
inline bool is_file(const std::string &path) {
|
||||
#ifdef _WIN32
|
||||
return _access_s(path.c_str(), 0) == 0;
|
||||
#else
|
||||
struct stat st;
|
||||
return stat(path.c_str(), &st) >= 0 && S_ISREG(st.st_mode);
|
||||
#endif
|
||||
}
|
||||
|
||||
inline bool is_dir(const std::string &path) {
|
||||
|
Reference in New Issue
Block a user