From c142424571a3744e8b68ec9746eaa05505c03af5 Mon Sep 17 00:00:00 2001 From: faketruth Date: Tue, 31 Jan 2012 00:38:18 +0000 Subject: Can now receive POST data in WebPlugins! Fixed Debug With optimized Noise in VS2010 by having it run the correct MCServer_debug.exe instead of MCServer.exe Changed winsock.h to Winsock2.h in Globals.h so sockets can be graciously closed (See webserver Socket::Close() ) git-svn-id: http://mc-server.googlecode.com/svn/trunk@197 0a769ca7-a7f5-676a-18bf-c427514a06d6 --- source/cWebAdmin.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'source/cWebAdmin.cpp') diff --git a/source/cWebAdmin.cpp b/source/cWebAdmin.cpp index 70f89528c..005a85424 100644 --- a/source/cWebAdmin.cpp +++ b/source/cWebAdmin.cpp @@ -136,6 +136,7 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) Request.Username = r->username_; Request.Method = r->method_; Request.Params = new cStringMap(r->params_); + Request.PostParams = new cStringMap(r->params_post_); Request.Path = r->path_; if( Split.size() > 1 ) @@ -158,6 +159,7 @@ void cWebAdmin::Request_Handler(webserver::http_request* r) } delete Request.Params; + delete Request.PostParams; if( FoundPlugin.empty() ) // Default page { -- cgit v1.2.3