diff options
author | madmaxoft <github@xoft.cz> | 2013-10-06 16:40:28 +0200 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2013-10-06 16:40:28 +0200 |
commit | f55b77a98a41ba784109842cde39ba0e1d2bc262 (patch) | |
tree | 89c1b144d1a224c24bc7ae79e9b0304766e01a8f /source/WebAdmin.cpp | |
parent | cListenThread: Fixed thread termination. (diff) | |
download | cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.gz cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.bz2 cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.lz cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.xz cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.tar.zst cuberite-f55b77a98a41ba784109842cde39ba0e1d2bc262.zip |
Diffstat (limited to '')
-rw-r--r-- | source/WebAdmin.cpp | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source/WebAdmin.cpp b/source/WebAdmin.cpp index 378a5966c..c917ec658 100644 --- a/source/WebAdmin.cpp +++ b/source/WebAdmin.cpp @@ -488,15 +488,20 @@ void cWebAdmin::OnRequestFinished(cHTTPConnection & a_Connection, cHTTPRequest & ) { HandleWebadminRequest(a_Connection, a_Request); - return; } - if (URL == "/") + else if (URL == "/") { // The root needs no body handler and is fully handled in the OnRequestFinished() call HandleRootRequest(a_Connection, a_Request); - return; } - // TODO: Handle other requests + else + { + // TODO: Handle other requests + } + + // Delete any request data assigned to the request: + cRequestData * Data = (cRequestData *)(a_Request.GetUserData()); + delete Data; } |