Skip to content

Commit

Permalink
action -> function
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolasnoble authored Nov 26, 2023
1 parent 5994806 commit 873679c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/core/web-server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -504,17 +504,17 @@ class CDExecutor : public PCSX::WebExecutor {
return true;
} else if (path == "ppf") {
auto vars = parseQuery(request.urlData.query);
auto action = vars.find("action");
if (action == vars.end()) {
auto function = vars.find("function");
if (function == vars.end()) {
client->write("HTTP/1.1 400 Bad Request\r\n\r\n");
return true;
}
if (action->second == "save") {
if (function->second == "save") {
iso->getPPF()->save(iso->getIsoPath());
} else if (action->second == "clear") {
} else if (function->second == "clear") {
iso->getPPF()->clear();
} else {
client->write("HTTP/1.1 400 Bad Request\r\n\r\n");
client->write("HTTP/1.1 400 Bad Request\r\n\r\nUnknown function.");
return true;
}
client->write("HTTP/1.1 200 OK\r\n\r\n");
Expand Down

0 comments on commit 873679c

Please sign in to comment.