Skip to content

Commit

Permalink
チャンネル停止ボタンでページがリロードされなかったのを修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
plonk committed Dec 6, 2022
1 parent 8fe3351 commit 1b0b7f5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/common/servhs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1439,7 +1439,10 @@ void Servent::CMD_stop(const char* cmd, HTTP& http, String& jumpStr)
sys->waitThread(&c->thread);
}

jumpStr.sprintf("/%s/channels.html", servMgr->htmlPath);
if (!http.headers.get("Referer").empty())
jumpStr = http.headers.get("Referer").c_str();
else
jumpStr.sprintf("/%s/relays.html", servMgr->htmlPath);
}

void Servent::CMD_bump(const char* cmd, HTTP& http, String& jumpStr)
Expand Down

0 comments on commit 1b0b7f5

Please sign in to comment.