Skip to content

Commit

Permalink
fix curseforge getFileInfo (import modpacks)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaniol-lck committed Jul 12, 2024
1 parent 7e65952 commit 6178b76
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/curseforge/curseforgeapi.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -137,11 +137,11 @@ Reply<QString> CurseforgeAPI::getDescription(int id)

Reply<CurseforgeFileInfo> CurseforgeAPI::getFileInfo(int id, int FileID)
{
QUrl url = PREFIX + "/v1/mods/" + QString::number(id) + "/file/" + QString::number(FileID);
QUrl url = PREFIX + "/v1/mods/" + QString::number(id) + "/files/" + QString::number(FileID);

QNetworkRequest request(url);
MMLogger::network(this) << url;
request.setRawHeader("x-api-key",XAPIKEY);
request.setRawHeader("x-api-key", XAPIKEY);
auto reply = accessManager_.get(request);
return { reply, [=]{
//parse json
Expand Down

0 comments on commit 6178b76

Please sign in to comment.