externals: Update cpp-httplib to latest
This commit is contained in:
		@@ -241,7 +241,7 @@ endif()
 | 
			
		||||
 | 
			
		||||
if (ENABLE_WEB_SERVICE)
 | 
			
		||||
    find_package(cpp-jwt 1.4 CONFIG)
 | 
			
		||||
    find_package(httplib 0.11 MODULE)
 | 
			
		||||
    find_package(httplib 0.12 MODULE)
 | 
			
		||||
endif()
 | 
			
		||||
 | 
			
		||||
if (YUZU_TESTS)
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								externals/cpp-httplib
									
									
									
									
										vendored
									
									
								
							
							
								
								
								
								
								
							
						
						
									
										2
									
								
								externals/cpp-httplib
									
									
									
									
										vendored
									
									
								
							 Submodule externals/cpp-httplib updated: 305a7abcb9...6d963fbe8d
									
								
							@@ -71,7 +71,7 @@ struct Client::Impl {
 | 
			
		||||
                             const std::string& jwt_ = "", const std::string& username_ = "",
 | 
			
		||||
                             const std::string& token_ = "") {
 | 
			
		||||
        if (cli == nullptr) {
 | 
			
		||||
            cli = std::make_unique<httplib::Client>(host.c_str());
 | 
			
		||||
            cli = std::make_unique<httplib::Client>(host);
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
        if (!cli->is_valid()) {
 | 
			
		||||
 
 | 
			
		||||
@@ -76,7 +76,7 @@ void DiscordImpl::Update() {
 | 
			
		||||
        // New Check for game cover
 | 
			
		||||
        httplib::Client cli(game_cover_url);
 | 
			
		||||
 | 
			
		||||
        if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name).c_str())) {
 | 
			
		||||
        if (auto res = cli.Head(fmt::format("/images/game/boxart/{}.png", icon_name))) {
 | 
			
		||||
            if (res->status == 200) {
 | 
			
		||||
                game_cover_url += fmt::format("/images/game/boxart/{}.png", icon_name);
 | 
			
		||||
            } else {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user