Skip to content

Commit

Permalink
Fix "Profile not found" when generating artifact (tindy2013#719)
Browse files Browse the repository at this point in the history
  • Loading branch information
tindy2013 committed Apr 3, 2024
1 parent 7fdba81 commit 535d1d0
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/handler/interfaces.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,13 @@
#include <mutex>
#include <numeric>

#include <inja.hpp>
#include <yaml-cpp/yaml.h>

#include "config/binding.h"
#include "generator/config/nodemanip.h"
#include "generator/config/ruleconvert.h"
#include "generator/config/subexport.h"
#include "generator/template/templates.h"
#include "script/cron.h"
#include "script/script_quickjs.h"
#include "server/webserver.h"
#include "utils/base64/base64.h"
Expand All @@ -24,9 +22,7 @@
#include "utils/string.h"
#include "utils/string_hash.h"
#include "utils/system.h"
#include "utils/system.h"
#include "utils/urlencode.h"
#include "utils/yamlcpp_extra.h"
#include "interfaces.h"
#include "multithread.h"
#include "settings.h"
Expand Down Expand Up @@ -931,7 +927,7 @@ std::string simpleToClashR(RESPONSE_CALLBACK_ARGS)
return "Please insert your subscription link instead of clicking the default link.";
}
request.argument.emplace("target", "clashr");
request.argument.emplace("url", urlEncode(url));
request.argument.emplace("url", url);
return subconverter(request, response);
}

Expand Down Expand Up @@ -1385,7 +1381,7 @@ int simpleGenerator()
if(ini.item_exist("profile"))
{
profile = ini.get("profile");
request.argument.emplace("name", urlEncode(profile));
request.argument.emplace("name", profile);
request.argument.emplace("token", global.accessToken);
request.argument.emplace("expand", "true");
content = getProfile(request, response);
Expand Down

0 comments on commit 535d1d0

Please sign in to comment.